https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78680
Bug ID: 78680
Summary: [7 Regression] ICE in get_substring_ranges_for_loc, at
input.c:1398
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
I'm aware of PR78569, but this is r243108, seen multiple times when test
rebuilding the Debian archive. It is reproducible, however not when adding
-save-temps. Seen in the packages:
cpl-plugin-uves
ctn
nspr
rxtx
tcptrace
wv
/home/packages/tmp/rxtx-2.2pre2/./src/SerialImp.c:4651:28: note: in expansion
of macro 'RXTXCommDriver'
JNIEXPORT jboolean JNICALL RXTXCommDriver(registerKnownPorts)(JNIEnv *env,
^~~~~~~~~~~~~~
0x10d2358 get_substring_ranges_for_loc
../../src/gcc/input.c:1398
0x10d2358 get_source_location_for_substring(cpp_reader*, string_concat_db*,
unsigned int, cpp_ttype, int, int, int, unsigned int*)
../../src/gcc/input.c:1468
0x621654 c_get_substring_location(substring_loc const&, unsigned int*)
../../src/gcc/c-family/c-common.c:865
0x9ff32d substring_loc::get_location(unsigned int*) const
../../src/gcc/substring-locations.c:194
0x9ff32d format_warning_va(substring_loc const&, source_range const*, char
const*, int, char const*, __va_list_tag (*) [1])
../../src/gcc/substring-locations.c:112
0x9ff627 format_warning_at_substring(substring_loc const&, source_range const*,
char const*, int, char const*, ...)
../../src/gcc/substring-locations.c:179
0xffd2ed add_bytes
../../src/gcc/gimple-ssa-sprintf.c:2077
0xffd2ed compute_format_length
../../src/gcc/gimple-ssa-sprintf.c:2223
0xffd2ed handle_gimple_call
../../src/gcc/gimple-ssa-sprintf.c:2835
0xffd2ed execute
../../src/gcc/gimple-ssa-sprintf.c:2863
Please submit a full bug report,
with preprocessed source if appropriate.