https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107919
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 Resolution|--- |FIXED Known to work| |13.1.0, 14.1.0 Known to fail| |12.3.0 Status|ASSIGNED |RESOLVED --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- With GCC 13 and newer we also do not diagnose with -O2 or -O3. I have a patch for trunk (GCC 15) that's going to regress for -O1 (but not -O2 or -O3), still declaring this fixed as reported.