https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 105937, which changed state.
Bug 105937 Summary: [12 Regression] maybe-uninitialized with std::optional https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED