/libcpp
commit3f6f41de8877187c0ea9a42953bc7a8b8082df50
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Nov 2017 10:33:41 +0000 (6 10:33 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Nov 2017 10:33:41 +0000 (6 10:33 +0000)
tree4ef2defce67d2862f4fcf5611615d618f5d1f6ec
parentbaf9f855777713dca68b336d374c8eae9a01804c
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254443 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/udlit-macros.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/lex.c