[Bug c++/80955] Macros expanded in definition of user-defined literals
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 6 10:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80955
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Nov 6 10:33:41 2017
New Revision: 254443
URL: https://gcc.gnu.org/viewcvs?rev=254443&root=gcc&view=rev
Log:
/libcpp
2017-11-06 Mukesh Kapoor <mukesh.kapoor@oracle.com>
PR c++/80955
* lex.c (lex_string): When checking for a valid macro for the
warning related to -Wliteral-suffix (CPP_W_LITERAL_SUFFIX),
check that the macro name does not start with an underscore
before calling is_macro().
/gcc/testsuite
2017-11-06 Mukesh Kapoor <mukesh.kapoor@oracle.com>
PR c++/80955
* g++.dg/cpp0x/udlit-macros.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/udlit-macros.C
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/lex.c
More information about the Gcc-bugs
mailing list