https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69558
--- Comment #26 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Bernd Edlinger from comment #25) > Author: edlinger > Date: Wed Jul 18 19:36:01 2018 > New Revision: 262861 > > URL: https://gcc.gnu.org/viewcvs?rev=262861&root=gcc&view=rev > Log: > libcpp: > 2018-07-18 Bernd Edlinger <bernd.edlin...@hotmail.de> > > PR 69558 > * macro.c (enter_macro_context): Change the location info for builtin > macros and _Pragma from location of the closing parenthesis to > location > of the macro expansion point. > > testsuite: > 2018-07-18 Bernd Edlinger <bernd.edlin...@hotmail.de> > > PR 69558 > * c-c++-common/cpp/diagnostic-pragma-2.c: New test. > * c-c++-common/pr69558.c: Remove xfail. > * gcc.dg/cpp/builtin-macro-1.c: Adjust test expectations. > * gcc.dg/pr61817-1.c: Likewise. > * gcc.dg/pr61817-2.c: Likewise. > * g++.dg/plugin/pragma_plugin.c: Warn at expansion_point_location. > > Added: > trunk/gcc/testsuite/c-c++-common/cpp/diagnostic-pragma-2.c > Modified: > trunk/gcc/testsuite/ChangeLog > trunk/gcc/testsuite/c-c++-common/pr69558.c > trunk/gcc/testsuite/g++.dg/plugin/pragma_plugin.c > trunk/gcc/testsuite/gcc.dg/cpp/builtin-macro-1.c > trunk/gcc/testsuite/gcc.dg/pr61817-1.c > trunk/gcc/testsuite/gcc.dg/pr61817-2.c > trunk/libcpp/ChangeLog > trunk/libcpp/macro.c So this still needs to be backported to the 7 and 8 branches before this bug can be closed, correct?