This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Support for universal character
- From: debugger_gcc <ashay dot raut at tcs dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 8 Feb 2010 02:46:57 -0800 (PST)
- Subject: Support for universal character
hello,
For the scenario where i declare a variable as
int \uA0A0; // in a C program
i get an error with message
error: universal character \uA0A0 is not valid in an identifier
when compiled using gcc-4.4.1 on linux.
However C99 standards specify only the following constraints on universal
characters :
Section 6.4.3 ISO/IEC 9899:TC3
" 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.62) "
so why doesnt gcc 4.4.1 throws an error saying "its not valid in an
identifier"?
Does gcc enforce some additional constraints regarding the usage of
universal character in C program?
--
View this message in context: http://old.nabble.com/Support-for-universal-character-tp27498030p27498030.html
Sent from the gcc - Help mailing list archive at Nabble.com.