This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Implementing Universal Character Names in identifiers
- From: loewis at informatik dot hu-berlin dot de (Martin v. Löwis)
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 07 Nov 2002 10:01:08 +0100
- Subject: Re: Implementing Universal Character Names in identifiers
- References: <200210280715.g9S7FdI2003815@paros.informatik.hu-berlin.de><20021107080904.GE11859@daikokuya.co.uk>
Neil Booth <neil@daikokuya.co.uk> writes:
> It would be nice if you could handle escaped newline issues in
> the UCS; I don't think your patch does that.
You mean, like
\u00\
c0
? This is undefined behaviour, in 2.1/1.2, and I think it should be an
error. It is an error indeed in my patch; the compiler reports
non-hex digit '\' in universal-character-name
> Also, as a QOI issue I'd like token pasting to work for UCS's,
> though the standard does not require it. Does your patch handle
> that?
You mean, like
#define Foo(x,y) x##y
void Foo(bar\u00, c0){}
I think this *must* be an error; it's not an option to accept it,
since bar\u00 is not a token.
Regards,
Martin