https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84560
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |ice-on-invalid-code Status|NEW |ASSIGNED CC| |jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Reduced further. With -std=c++0x this ICEs as far back as 4.5, the first release to support lambdas. void f() { int n = 1; int m = 1; int d[n][m]; [&]() { return d[1]; }(); }