https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122326
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot
gnu.org
Status|ASSIGNED |UNCONFIRMED
Ever confirmed|1 |0
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually I am not 100% sure this is not wrong because arr2 being unused it is
allocated to the same location as arr1 which is fine as not actually used.
Once arr2 becomes used, then GCC produces correct results.