https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84517
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Feb 28 15:27:17 2018 New Revision: 258069 URL: https://gcc.gnu.org/viewcvs?rev=258069&root=gcc&view=rev Log: 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. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/udlit-macros.C trunk/libcpp/ChangeLog trunk/libcpp/lex.c