[Bug c++/55520] New: [C++11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520 Bug #: 55520 Summary: [C++11 Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: etlverif...@gmail.com
[Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520 etlverified at gmail dot com changed: What|Removed |Added Summary|[C++11 |[C++11] ICE when capturing ||a variable-length stack ||array in lambda; in ||expand_expr_real_1, at ||expr.c:9122 --- Comment #1 from etlverified at gmail dot com 2012-11-28 21:17:29 UTC --- int main(int argc, char** argv) { int x[1][argc]; [&x](int i) { x[0][i] = 0; }(5); return 0; }
[Bug c++/55538] New: [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55538 Bug #: 55538 Summary: [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035 Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: etlverif...@gmail.com Input: -- #include struct IBar { virtual void runLambda(const std::function& func) const = 0; }; template struct Foo { void test(IBar* b) { b->runLambda([this]() { onTest(); }); } void onTest() {} }; int main(int argc, char** argv) { Foo f; f.test(nullptr); return 0; } Output: --- test.cpp: In lambda function: test.cpp:25:1: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:1035