[Bug libstdc++/35878] [LWG 2302] Useless NULL pointer check when constructing object
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 19 17:17:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35878
--- Comment #8 from Marc Glisse <glisse at gcc dot gnu.org> ---
It shouldn't be very hard, there is a variable check_new in build_new_1 in
cp/init.c, we need to recognize the standard placement new (not sure what the
best way is to do that) and set check_new to false in that case (unless
flag_check_new).
More information about the Gcc-bugs
mailing list