https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111389
Bug ID: 111389 Summary: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:647 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: shaohua.li at inf dot ethz.ch CC: hubicka at gcc dot gnu.org Target Milestone: --- gcc at -O2 crashes on the following testcase. Bisected to r14-301-gf2d6beb7a4d Compiler explorer: https://godbolt.org/z/o98qrd5nr $cat a.c int *a; char b; int d; int e(int f) { int c = 0; for (; f > 1; c++) f >>= 1; return c; } void g() { for (;;) { for (; d; d++) ; b = 0; for (; e(92) - 6 + b; b = b + 8) *a = 0; } } int main() {} $ gcc -O0 a.c && ./a.out $ gcc -O2 a.c during GIMPLE pass: ch_vect a.c: In function āgā: a.c:10:6: internal compiler error: in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645 10 | void g() { | ^ 0x7f8ffe5f1082 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions $