https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 90647, which changed state.
Bug 90647 Summary: Warn on returning a lambda with captured local variables https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90647 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE