https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96273
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- Reduced C++ code: int b, c, e; int d[1]; void f() { int a; for (;;) { c = 0; for (; c <= 1000; b += 10, c++) { a = 0; for (; a < 10; a++) if (b) e += d[b] = e; } } }