PR c++/78469 - defaulted ctor and inaccessible dtor
authorNathan Sidwell <nathan@acm.org>
Tue, 24 Jan 2017 19:29:44 +0000 (19:29 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 24 Jan 2017 19:29:44 +0000 (19:29 +0000)
commit1d7bc790d78f6913a72061e526a4a89e083826a4
tree278e354fb8fcdc27cfba50fc6e4e58fb037f44d1
parent3e4b91f275a6fb8f6466f1ab8c9f24e3d2abf13f
PR c++/78469 - defaulted ctor and inaccessible dtor

PR c++/78469 - defaulted ctor and inaccessible dtor
* cp-tree.h (tsubst_flags): Add tf_no_cleanup.
* init.c (build_new_1): Pass tf_no_cleanup to build_value_init.
* tree.c (build_target_expr): Check tf_no_cleanup.

PR c++/78469
* g++.dg/cpp0x/pr78469.C: New.

From-SVN: r244882
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr78469.C [new file with mode: 0644]