https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70555
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |7.0 --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Current trunk (GCC 7) looks even more confused than GCC 6. Note also the SSA names above the notes: $ cat t.C && gcc -S -Wall t.C void f (int n) { int x[n][n]; [&x](int i) { return x[0][i] = 0; }(0); } t.C: In lambda function: t.C:5:13: error: Local declaration from a different function [&x](int i) { ^ D.2312 t.C:5:15: note: in statement [&x](int i) { ^ _2 = (sizetype) D.2312; t.C:5:13: error: Local declaration from a different function [&x](int i) { ^ D.2312 t.C:5:15: note: in statement [&x](int i) { ^ _9 = (sizetype) D.2312; t.C:5:13: error: Local declaration from a different function [&x](int i) { ^ D.2315 t.C:6:18: note: in statement return x[0][i] = 0; ~~~~~~^ _13 = D.2315 /[ex] 4; t.C:5:13: internal compiler error: verify_gimple failed [&x](int i) { ^ 0x11b3ca5 verify_gimple_in_cfg(function*, bool) /src/gcc/git/gcc/tree-cfg.c:5266 0x10412c2 execute_function_todo /src/gcc/git/gcc/passes.c:1966 0x104034d do_per_function /src/gcc/git/gcc/passes.c:1650 0x1041494 execute_todo /src/gcc/git/gcc/passes.c:2016 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.