https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86886
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- If you want to play these sort of games then you need to compile with -fno-strict-aliasing (which you should have tried anyway if you'd read https://gcc.gnu.org/bugs/ first)