https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109728
Bug ID: 109728 Summary: lambda capture with initializer doesn't compile Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc++ Assignee: unassigned at gcc dot gnu.org Reporter: falemagn at gmail dot com Target Milestone: --- This simple snippet int a; auto b = [c = a]{}; Produces the following error: error: 'c' was not declared in this scope