This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19476] Missed null checking elimination with new
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2008 23:33:03 -0000
- Subject: [Bug c++/19476] Missed null checking elimination with new
- References: <bug-19476-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from ian at airs dot com 2008-04-10 23:33 -------
Note that bug 35878, which was closed as a duplicate of this one, was a case of
placement new. For placement new the check for a NULL pointer is particularly
useless, as the language standard says that placement new is required to return
the pointer which was passed in.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19476