https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103093
Bug ID: 103093
Summary: ice in get_imports, at gimple-range-gori.cc:221
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this C source code:
int i_0, c_4, uc_7, func_2_c_11;
short *func_2_ptr_10;
void func_2() {
uc_7 = 7;
for (; uc_7 <= 60; uc_7 += 1) {
c_4 = 5;
for (; c_4 <= 76; c_4 += 1) {
func_2_ptr_10 = &i_0;
if ((i_0 |= 5) > 0 ?: (60 && uc_7) | *func_2_ptr_10)
if (func_2_c_11)
for (;;)
;
}
}
}
compiled with recent trunk gcc and compiler flag -O2, does this:
$ /home/dcb/gcc/results/bin/gcc -c -w -O2 bug769.c
during GIMPLE pass: vrp
bug769.c: In function ‘func_2’:
bug769.c:5:6: internal compiler error: in get_imports, at
gimple-range-gori.cc:221
5 | void func_2() {
| ^~~~~~
0x1ae51cf range_def_chain::get_imports(tree_node*)
../../trunk.git/gcc/gimple-range-gori.cc:220
The bug first seems to occur sometime between git hash a11c53985a7080f9
and c79399c7e128a3ea, range of 44 commits.