cpplib: Preliminary implementation of UCNs

Comeau Computing comeau@comeaucomputing.com
Tue Apr 22 21:45:00 GMT 2003


At 12:17 PM 4/20/2003 -0700, Geoff Keating wrote:
> > Date: Sun, 20 Apr 2003 08:01:54 +0100
> > From: Neil Booth <neil@daikokuya.co.uk>
>
> > 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.
>
>It's quite likely that he simply didn't think of this.

Just to follow-up that a patch is now available that should fix the problem 
that you pointed out with Comeau C++.


-------
Comeau C/C++ 4.3.0.1: FULL CORE LANGUAGE, INCLUDING TC1
Comeau C/C++ ONLINE ==>  http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries.  Have you tried it?
comeau@comeaucomputing.com    http://www.comeaucomputing.com



More information about the Gcc-patches mailing list