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: cpplib: Preliminary implementation of UCNs


Geoff Keating wrote:-

> I'm not quite sure what you mean by "the same" here.
> 
> Certainly, the following is a valid translation unit (assuming you get
> the character sets right, the character after the '+' is supposed to
> be an accented capital A):
> 
> int \u00c0;
> int foo(void) { return \u00C0 + ?; }
> 
> because a UCN only "designates" a character, and identifiers are the
> same if they are composed of the same characters.

FWIW Comeau gives

"ComeauTest.c", line 2: error: identifier "\u00C0" is undefined
  int foo(void) { return \u00C0 + ?; }   
                           ^
and they claim to be a conforming C99 and C++ implementation.

Neil.


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