https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103410
Bug ID: 103410 Summary: ICE: in grokfndecl, at cp/decl.c:9903 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- This is an ancient bug that has existed since gcc-6, and I suspect someone has reported it. auto f() requires (auto{[]{}}); https://godbolt.org/z/4ajq6h9jK