[Bug c++/70105] [6 regression] giant warning when building gcc-5 with gcc-6
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 17 18:28:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70105
--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Thu Mar 17 18:27:47 2016
New Revision: 234303
URL: https://gcc.gnu.org/viewcvs?rev=234303&root=gcc&view=rev
Log:
PR c/70264: fix crash in compatible_locations_p with BUILTINS_LOCATION
In r234088 my fix for PR c++/70105 didn't allow for the possibility that
when comparing a pair of macro expansion histories that one of the
macros in the history might not be located within a line-map, and
PR c/70264 reports a crash due to encountering BUILTINS_LOCATION within
the traversal.
Fixed thusly.
Successfully bootstrapped on x86_64-pc-linux-gnu; adds 4 PASS results
to gcc.sum and 12 to g++.sum.
gcc/ChangeLog:
PR c/70264
* diagnostic-show-locus.c (compatible_locations_p): Handle the case
where one or both locations aren't within a line_map.
gcc/testsuite/ChangeLog:
PR c/70264
* c-c++-common/pr70264.c: New test case.
Added:
trunk/gcc/testsuite/c-c++-common/pr70264.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic-show-locus.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list