re PR c++/35878 ([LWG 2302] Useless NULL pointer check when constructing object)
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 21 Mar 2017 06:36:22 +0000 (08:36 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Tue, 21 Mar 2017 06:36:22 +0000 (08:36 +0200)
commitece3b7e65aed085cfc73a7e84ceb4a25c2683054
treed79677552e18d212e5b23a180aad1873e8e7c956
parent5b9e0383cc7d0c9eaf2d2d4ec8443e09fbc45298
re PR c++/35878 ([LWG 2302] Useless NULL pointer check when constructing object)

gcc/

PR c++/35878
* cp/init.c (std_placement_new_fn_p): New.
(build_new_1): Call it.

testsuite/

PR c++/35878
* g++.dg/init/pr35878_1.C: New.
* g++.dg/init/pr35878_2.C: Likewise.
* g++.dg/init/pr35878_3.C: Likewise.

From-SVN: r246301
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/g++.dg/init/pr35878_1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/pr35878_2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/pr35878_3.C [new file with mode: 0644]