https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104670
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Target Milestone|11.5 |12.0 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=101911 Resolution|--- |FIXED Keywords| |c++-lambda Blocks| |107430 --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed in GCC 12. Note you can make this an ICE after an invalid error with: ``` struct foo { decltype([] { struct a{ int fn() {} }; a{}; }) bar; }; ``` But that is really PR 101911 . So still closing as fixed. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430 [Bug 107430] [meta-bug] lambda in decltype