https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102511
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|GCC produces incorrect code |[12 Regression] GCC |for -O3: first element of |produces incorrect code for |the array is skipped |-O3: first element of the | |array is skipped Target Milestone|--- |12.0 Version|11.0 |12.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Does not work: r12-3906-g51018dd1 Works: r12-3890-gfe2771b2 Note there is one undefined behavior in this code, but it does not matter really. The types of arr_15 don't match but after fixing it should fail still.