PR preprocessor/84517 allow double-underscore macros after string literals
authorJonathan Wakely <jwakely@redhat.com>
Wed, 28 Feb 2018 15:27:17 +0000 (15:27 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 28 Feb 2018 15:27:17 +0000 (15:27 +0000)
commitb44f8ad8b2138f7bfd68053e8dce596adb964735
tree598aa26af298bebfa086b251ff514b8dd08b82b2
parentc6db43fa35b9d98d0eaa49bb9243e99aada49670
PR preprocessor/84517 allow double-underscore macros after string literals

gcc/testsuite:

PR preprocessor/84517
* g++.dg/cpp0x/udlit-macros.C: Expect a warning for ""__FILE__.

libcpp:

PR preprocessor/84517
* lex.c (is_macro_not_literal_suffix): New function.
(lex_raw_string, lex_string): Use is_macro_not_literal_suffix to
decide when to issue -Wliteral-suffix warnings.

From-SVN: r258069
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/udlit-macros.C
libcpp/ChangeLog
libcpp/lex.c