https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114592
Jeffrey A. Law <law at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12/13/14/15 regression] |[12/13/14 regression] Bogus |Bogus `maybe-uninitialized` |`maybe-uninitialized` on |on std::variant with |std::variant with |std::string with -O3 |std::string with -O3 --- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> --- This has been fixed on the trunk. And just to remove any doubt about the possibility that Jon fixed this with a libstdc++ adjustment. I produced a .ii file with g++-14 (which triggered the warning as expected). Then I tested *that* with the trunk. Adjusting regression marker appropriately.