https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117574
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |6.5.0 Ever confirmed|0 |1 Known to fail| |15.0 Last reconfirmed| |2024-11-14 Summary|Miscompile with -O2/3 and |[12/13/14/15 Regression] |-O0/1 |Miscompile with -O2/3 and | |-O0/1 Keywords| |needs-bisection Status|UNCONFIRMED |NEW Target Milestone|--- |12.5 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. You can hit the bug in GCC 7/8 by `s/c = 1/c = -1/`.