https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99379
Bug ID: 99379 Summary: lambda declared with deduced type 'auto' can appear in its own initializer Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- The following code accepts by GCC-trunk: auto x = [x]{ }; godbolt: https://godbolt.org/z/e76Kn1