https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116079
Bug ID: 116079 Summary: ice during GIMPLE pass lim Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This C source code: char g_132; int g_701, g_1189, func_24___trans_tmp_15, func_24_l_2691; long func_24___trans_tmp_9; int *func_24_l_2684; void func_24() { for (; g_1189;) { g_132 = 0; for (; g_132 < 6; ++g_132) { func_24___trans_tmp_9 = *func_24_l_2684 = func_24_l_2691; g_701 = 4; for (; g_701; g_701 -= 1) { int l_2748[4]; int si2 = l_2748[3]; func_24___trans_tmp_15 = si2; } } } } when compiled by recent gcc trunk, does this: cvise $ /home/dcb40b/gcc/results.20240718.asan.ubsan/bin/gcc -c -w -O2 -fno-strict-aliasing bug1044.c cvise $ /home/dcb40b/gcc/results.20240719.asan.ubsan/bin/gcc -c -w -O2 -fno-strict-aliasing bug1044.c during GIMPLE pass: lim bug1044.c: In function ‘func_24’: bug1044.c:5:6: internal compiler error: Segmentation fault 5 | void func_24() { | ^~~~~~~ 0x21cc5cd internal_error(char const*, ...) /home/dcb40b/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:491 0xef6f69 crash_signal(int) /home/dcb40b/gcc/working/gcc/../../trunk/gcc/toplev.cc:319 0x9750f6 dominated_by_p(cdi_direction, basic_block_def const*, basic_block_def const*) /home/dcb40b/gcc/working/gcc/../../trunk/gcc/dominance.cc:1128 Git range seems to be g:d062b0abf45cd540 to g:2ee70c9f83a1033f