https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77745
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.5.0
Target Milestone|--- |5.5
Summary|Inconsistent application of |[5/6/7 Regression]
|aliasing rules |Inconsistent application of
| |aliasing rules
Known to fail| |5.4.0, 7.0
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You know what you are right this is wrong code.
Note I am surprised we don't emit clobber barriers before operator new anyways
to say the life time of an object just started. This will most likely solve
the issue overall.