https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57082
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Dec 11 16:51:09 2019 New Revision: 279236 URL: https://gcc.gnu.org/viewcvs?rev=279236&root=gcc&view=rev Log: PR c++/57082 - new X{} and private destructor. build_new_1 already passes tf_no_cleanup to build_value_init, but in this testcase we end up calling build_value_init by way of build_special_member_call, so we need to pass it to that function as well. * init.c (build_new_1): Also pass tf_no_cleanup to build_special_member_call. Added: trunk/gcc/testsuite/g++.dg/cpp0x/initlist-new2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/init.c