Support for universal character

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux