This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/77883] New: ice with -Wall flag
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 06 Oct 2016 16:55:59 +0000
- Subject: [Bug c/77883] New: ice with -Wall flag
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77883
Bug ID: 77883
Summary: ice with -Wall flag
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 39765
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39765&action=edit
gzipped C source code
The attached code, when compiled by gcc trunk revision 240826,
and the flag -Wall, does this:
/home/dcb/rpmbuild/BUILD/rxtx-20100211/./src/SerialImp.c: In function
‘Java_gnu_
io_RXTXCommDriver_registerKnownPorts’:
/home/dcb/rpmbuild/BUILD/rxtx-20100211/./src/SerialImp.c:4608:49: internal
compi
ler error: in get_substring_ranges_for_loc, at input.c:1375
JNIEXPORT jboolean JNICALL RXTXCommDriver(registerKnownPorts)(JNIEnv *env,
^~~~~~~~~~~~~~~~~~~~~~~~~~
0x14c251a get_substring_ranges_for_loc
../../trunk/gcc/input.c:1375
0x14c2bc4 get_source_location_for_substring(cpp_reader*, string_concat_db*,
unsi
gned int, cpp_ttype, int, int, int, unsigned int*)
../../trunk/gcc/input.c:1445
0x6ce424 c_get_substring_location(substring_loc const&, unsigned int*)
../../trunk/gcc/c-family/c-common.c:1175
0xc5e3dd substring_loc::get_location(unsigned int*) const
../../trunk/gcc/substring-locations.c:194
0xc5e3dd format_warning_va(substring_loc const&, source_range const*, char
const
*, int, char const*, __va_list_tag (*) [1])