https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111436
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You are type punning and that will almost definitely cause undefined code due
to alias violations.
You could use memcpy instead of the which will (almost; standard layout
structures [or POD for pre C++11]) always work.