This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/64576] Preprocessor Error With 5.0 not with 4.9.2
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Jan 2015 23:03:51 +0000
- Subject: [Bug preprocessor/64576] Preprocessor Error With 5.0 not with 4.9.2
- Auto-submitted: auto-generated
- References: <bug-64576-4 at http dot gcc dot gnu dot org/bugzilla/>
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.