https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111671
Bug ID: 111671 Summary: ICE in get_default_value, at tree-ssa-ccp.cc:312 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: aldyh at redhat dot com Target Milestone: --- gcc at -O2/3 crashes. Bisected to r14-2965-gc83528d2367 Compiler explorer: https://godbolt.org/z/MEnY9sYh5 $ cat a.c int a, b, c, d; int e() { if (a) return 0; return -1; } static unsigned f(short); void h() { int g = 59258; b = -50; g |= e() + b; f(g); } unsigned f(short i) { int *j[15], *k[15] = {}; j[0] = 0; { long l[4]; long m = *l, *n[] = {&m}; for (; c; c++) d = i; int** o[] = {k, j}; } } int main() {} $ $ gcc -O2 a.c during GIMPLE pass: ccp a.c: In function ‘f.isra’: a.c:14:10: internal compiler error: in get_default_value, at tree-ssa-ccp.cc:312 14 | unsigned f(short i) { | ^ 0x7ff11cd60082 __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. $