https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
           Priority|P3                          |P2

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
We treat the global operator new as not reading from global memory but here it
does.  I'm not sure if this overload is "valid".  There's also the distinction
made between replaceable and non-replaceable(?) operators.

If a replaced global operator new can have arbitrary side-effects we cannot do
the optimization that was added.

Reply via email to