https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114253
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|False positive |[11/12/13/14/15 regression] |maybe-uninitialized with |False positive |std::optional and ternary |maybe-uninitialized with | |std::optional and ternary --- Comment #6 from Sam James <sjames at gcc dot gnu.org> --- I don't see it with 12/13 with -O1 per original but flakiness is expected with these... Anyway, I get it consistently with -O2.