Re: [PATCH, C++-1z] Implement N4197 - Adding u8 character literals

2015-07-01 Thread Richard Biener
On Mon, Jun 29, 2015 at 3:41 PM, Jason Merrill ja...@redhat.com wrote: On 06/27/2015 08:14 PM, Ed Smith-Rowland wrote: In c-ada-specs.c/print_ada_macros() I just write these as a char constant rather than spelling the token. We could do the latter. You'd see the u8 then I think. I couldn't

Re: [PATCH, C++-1z] Implement N4197 - Adding u8 character literals

2015-07-01 Thread Richard Biener
On Wed, Jul 1, 2015 at 1:24 PM, Richard Biener richard.guent...@gmail.com wrote: On Mon, Jun 29, 2015 at 3:41 PM, Jason Merrill ja...@redhat.com wrote: On 06/27/2015 08:14 PM, Ed Smith-Rowland wrote: In c-ada-specs.c/print_ada_macros() I just write these as a char constant rather than

Re: [PATCH, C++-1z] Implement N4197 - Adding u8 character literals

2015-06-29 Thread Jason Merrill
On 06/27/2015 08:14 PM, Ed Smith-Rowland wrote: In c-ada-specs.c/print_ada_macros() I just write these as a char constant rather than spelling the token. We could do the latter. You'd see the u8 then I think. I couldn't find in the Ada test suite where this was exercised. If Ada folks don't

[PATCH, C++-1z] Implement N4197 - Adding u8 character literals

2015-06-27 Thread Ed Smith-Rowland
I apologize to all who got this earlier. I forgot to send to the list. This patch adds UTF-8 character literals to C++: auto c = u8'c'; This is mostly a straight forward preprocessor exercise. I only allow these characters in -std=c++1z and -std=gnu++1z. I figure we can expand that easily