libcpp: preserve ranges within macro expansions (PR c++/79300)
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 7 Jul 2017 18:49:09 +0000 (18:49 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 7 Jul 2017 18:49:09 +0000 (18:49 +0000)
commit738f7c2e12de922b91024717429a048b877492ee
tree1b954335f19a816878f1e5806bb1ecff2760223b
parent57f49e990f52ebdd3cb4a5be4e87a2301fed1a1a
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.

From-SVN: r250058
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr79300.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/line-map.c