https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 102801, which changed state.
Bug 102801 Summary: Incorrect -Wmaybe-uninitialized warning/interaction for a std::optional only when a nested struct is also present. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102801 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED