r279236 - in /trunk/gcc: cp/ChangeLog cp/init.c...
jason@gcc.gnu.org
jason@gcc.gnu.org
Wed Dec 11 16:51:00 GMT 2019
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
More information about the Gcc-cvs
mailing list