https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109241
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12/13 Regression] ICE |[12/13/14 Regression] ICE |Segmentation fault for |Segmentation fault for |statement expression with a |statement expression with a |local type inside inside a |local type inside inside a |generic lambda inside a |generic lambda inside a |generic lambda since |generic lambda since |r13-6722-gb323f52ccf966800 |r13-6722-gb323f52ccf966800 CC| |rguenth at gcc dot gnu.org --- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Marek Polacek from comment #5) > In GCC 12 this test still ICEs: > > template<class T> > void foo(T) { > [](auto){ > [] { > struct X {}; > }; > }; > } > > template void foo(int); How so? I can't reproduce. Likewise for PR109850. Is trunk actually fixed? Please update known-to-work.