https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124148
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is definitely violating aliasing.
GCC itself had a similar bug years ago too, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48981 .
