[Bug c++/79300] Wrong diagnostics position
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 7 18:50:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79300
--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Jul 7 18:49:09 2017
New Revision: 250058
URL: https://gcc.gnu.org/viewcvs?rev=250058&root=gcc&view=rev
Log:
libcpp: preserve ranges within macro expansions (PR c++/79300)
gcc/testsuite/ChangeLog:
PR c++/79300
* g++.dg/diagnostic/pr79300.C: New test case.
libcpp/ChangeLog:
PR c++/79300
* line-map.c (linemap_macro_loc_to_def_point): Preserve range
information for macro expansions by delaying resolving ad-hoc
locations until within the loop.
Added:
trunk/gcc/testsuite/g++.dg/diagnostic/pr79300.C
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/line-map.c
More information about the Gcc-bugs
mailing list