This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78469] [7 Regression] defaulted default constructor causes bogus requirement for accessible destructor


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78469

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Tue Jan 24 19:29:44 2017
New Revision: 244882

URL: https://gcc.gnu.org/viewcvs?rev=244882&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr78469.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]