https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67608
Bug ID: 67608 Summary: ICE when capturing a local 2D array Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: linesprower at gmail dot com Target Milestone: --- // command line: g++ -std=c++11 error.cpp // // compiler version: 4.9.2 (Ubuntu 14.04) // // compiler output: // error.cpp: In lambda function: // error.cpp:10:21: internal compiler error: in expand_expr_real_1, at expr.c:9454 // seen[r][c] = true; // ^ class Test { const int k = 50; public: void test() { bool seen[k][k]; auto trace = [&](int r, int c) { seen[r][c] = true; }; trace(5, 5); } }; int main() { Test t; t.test(); return 0; }