https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 115604, which changed state.
Bug 115604 Summary: Absurd "flows off the end of the function" diagnostic with requires expression containing only lambda(s) without being inside a template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115604 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE