https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113898
Shaohua Li <shaohua.li at inf dot ethz.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #5 from Shaohua Li <shaohua.li at inf dot ethz.ch> --- Looks like the fix is not complete Compiler explorer: https://godbolt.org/z/z3YKznMzE % cat reduced.c long a, b, c; int d; long e[2][1]; int f() { if (c == a) c = b; } void g() { int h, i = 0; for (; f() + d + i; i++) e[h][i] = 4; } void main() {} % % gcc -O3 reduced.c during GIMPLE pass: fre reduced.c: In function 'g': reduced.c:8:6: internal compiler error: in copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1177 8 | void g() { | ^ 0x233ba2c internal_error(char const*, ...) ???:0 0x96c20f fancy_abort(char const*, int, char const*) ???:0 0x12991ba vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind, vn_reference_s**, bool, tree_node**, tree_node*, bool) ???:0 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. Compiler returned: 1 %