https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109732
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |tree-optimization
Keywords| |wrong-code
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
First thing to try is -O1.
If that works try -O2 -fno-strict-aliasing.
