https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 99232, which changed state.
Bug 99232 Summary: Exported variable in module gives error: 'lambda' was not declared in this scope https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99232 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED