On Thu, 25 Jul 2019, Martin Liška wrote:

DCE has special code to avoid removing the LHS of malloc when it is unused. Is 
there something different about operator new that makes it not need the same 
handling?

If you take gcc.dg/torture/pr51692.c and replace __builtin_calloc (1, sizeof (double)) with new double(), we get an ICE with -O or higher...

--
Marc Glisse

Reply via email to