https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67090
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is such an obvious violation of aliasing rules in c/c++.
Use memcpy or an Union (gcc extension) to get around the it. You can use
-fno-strict-aliasing too.
