https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |12.1.0 Last reconfirmed| |2024-08-25 Target Milestone|--- |12.5 Ever confirmed|0 |1 Keywords| |needs-bisection Status|UNCONFIRMED |NEW Summary|Compilation error caused by |[12/13/14/15 Regression] |-Warray-bounds and -O2 |Compilation error caused by | |-Warray-bounds and -O2 Known to work| |11.1.0 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Note I think this code is undefined really unless you use the volatile. Now we should not reject it though. The error message happens on x86_64 also.