libcpp: preserve ranges within macro expansions (PR c++/79300)
commit2beb7fe704520273850f48f39d88d585f60489a0
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Jul 2017 18:49:09 +0000 (7 18:49 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Jul 2017 18:49:09 +0000 (7 18:49 +0000)
tree1b954335f19a816878f1e5806bb1ecff2760223b
parentbf2a809d232d30ee37cc9f25304d522bbf05b6c4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250058 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr79300.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/line-map.c