The following invalid code snippet triggers an ICE on trunk: ======================================= struct A { typedef void (F)(); F f = []{}; }; =======================================
bug.cc:4:12: internal compiler error: in grokfield, at cp/decl2.c:911 Please submit a full bug report, [etc.] -- Summary: [c++0x] ICE with invalid use of lambda expression Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43081