This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support for C++0x and C1x u8 string literals and raw string literals


On Fri, 12 Sep 2008, Jakub Jelinek wrote:

> If it is up to the implementation to choose between \u0040 and \U00000040,
> then writing R"@@[]@@"; would be either valid or invalid, depending
> on whether the implementation has replaced it by \u0040 or \U00000040 (as in
> the latter case it is 2 x 10 characters, more than 16 char limit for
> d-char-sequence).

Yes, that's how I read it, and I think an implementation could choose 
different UCNs for different instances of @ in the same translation unit 
although I don't see why any implementation should wish to do so.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]