[Bug preprocessor/64576] Preprocessor Error With 5.0 not with 4.9.2
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 12 23:03:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64576
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9 behaves the same way with -std=c11, GCC 5 behaves the old way with
-std=c99. -std=c11 turns on unicode literals, i.e. u"str", U"str" and u8"str".
So for #u"str" you really need to put there whitespace, so that it isn't
parsed as # followed by u"str" string literal.
More information about the Gcc-bugs
mailing list