Re: [PATCH] libcpp, v2: Implement C++23 P1949R7 - C++ Identifier Syntax using Unicode Standard Annex 31

2021-08-17 Thread Jakub Jelinek via Gcc-patches
On Mon, Aug 16, 2021 at 07:45:55PM -0400, Jason Merrill wrote: > On 8/16/21 4:51 PM, Jakub Jelinek wrote: > > On Mon, Aug 16, 2021 at 04:21:00PM -0400, Jason Merrill wrote: > > > > I see for the UTF-8 chars we have: > > > > switch (ucn_valid_in_identifier (pfile, *cp, nst)) > > > >

Re: [PATCH] libcpp, v2: Implement C++23 P1949R7 - C++ Identifier Syntax using Unicode Standard Annex 31

2021-08-16 Thread Jason Merrill via Gcc-patches
On 8/16/21 4:51 PM, Jakub Jelinek wrote: On Mon, Aug 16, 2021 at 04:21:00PM -0400, Jason Merrill wrote: I see for the UTF-8 chars we have: switch (ucn_valid_in_identifier (pfile, *cp, nst)) { case 0: /* In C++, this is an error for invalid character in an

Re: [PATCH] libcpp, v2: Implement C++23 P1949R7 - C++ Identifier Syntax using Unicode Standard Annex 31

2021-08-16 Thread Jakub Jelinek via Gcc-patches
On Mon, Aug 16, 2021 at 04:21:00PM -0400, Jason Merrill wrote: > > I see for the UTF-8 chars we have: > >switch (ucn_valid_in_identifier (pfile, *cp, nst)) > > { > > case 0: > >/* In C++, this is an error for invalid character in an > > identifier > >