This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/19476] Missed null checking elimination with new



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]