[cfe-dev] Wide strings and clang::StringLiteral.

Neil Booth neil at daikokuya.co.uk
Tue Dec 2 07:46:05 PST 2008


Jean-Daniel Dupas wrote:-

>> My front end gives
>>
>> $ ~/src/c/cfe /tmp/test.c
>> "/tmp/test.c", line 3: error: universal character name "\u0301" cannot
>>       be used in an identifier
>>        return he\u0301; // hé - using decomposed form
>>               --^^^^^^
>>
>> 1 error found compiling "/tmp/bug.c".
>>
>> So you've chosen an invalid UCN.  The standard lists the acceptable
>> UCNs; apparently this isn't one.
>
> The standard define some constaints on UCN, but I don't see why 0x0301  
> does not works.
>
> From WG14/N1124 CommitteeDraft — May 6, 2005: page 53:
>
> “A universal character name shall not specify a character whose short  
> identifier is less than 00A0 other than 0024 ($), 0040 (@), or 0060 (‘),
> nor one in the range D800 through DFFF inclusive.)”

Annex D.

Neil.



More information about the cfe-dev mailing list