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

--- Comment #7 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #0)
> It would be nice to use the fact that the default
> operator new throw exception instead of returning NULL in out of memory case.

Note that often you want to know not only that the pointer p returned by
new/malloc is non-zero, you also want to know that p+1, p+4 etc are non-zero
(see for instance the optimized dump of auto f(){return
std::vector<int>{1,2,3};} until we implement
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1748 ).

Reply via email to