https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 71546, which changed state.
Bug 71546 Summary: lambda capture fails with "was not declared in this scope" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71546 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED