https://bugs.llvm.org/show_bug.cgi?id=42564
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
This is a permitted optimization. Under C++ [expr.new]p12
(http://eel.is/c++draft/expr.new#12):
"An implementation is allowed to omit a call to a replaceable global allocation
function ([new.delete.single], [new.delete.array]). When it does so, the
storage is instead provided by the implementation or provided by extending the
allocation of another new-expression."
In this case, the implementation provides storage for the 'new (std::nothrow)
A' expression itself rather than calling the allocation function, so it would
not be appropriate to call a deallocation function.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs