https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 92011, which changed state.
Bug 92011 Summary: '<anonymous>' may be used uninitialized in this function with std::optional<T>() https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92011 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE