https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115724
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> --- As noted by Jakub, it works fine at -O1 and above: https://godbolt.org/z/GrPv3rjoj I'll fix it in the analyzer for the -O0 case.