]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR c++/80955 (Macros expanded in definition of user-defined literals)
authorMukesh Kapoor <mukesh.kapoor@oracle.com>
Mon, 6 Nov 2017 10:33:41 +0000 (10:33 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 6 Nov 2017 10:33:41 +0000 (10:33 +0000)
commit7d19c460ed95b5e0988f1ba37ce614ddd8d27aa8
tree4ef2defce67d2862f4fcf5611615d618f5d1f6ec
parent16f681db1100e78ff9a0cb04fc8fd18719c92839
re PR c++/80955 (Macros expanded in definition of user-defined literals)

/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.

From-SVN: r254443
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/udlit-macros.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/lex.c