https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 79488, which changed state.
Bug 79488 Summary: [7 Regression] ICE from lambda that has invalid return type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79488 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED