PR c++/85792 -Wctor-dtor-privacy and inherited constructor.
authorJason Merrill <jason@redhat.com>
Mon, 11 Jun 2018 21:49:36 +0000 (17:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 11 Jun 2018 21:49:36 +0000 (17:49 -0400)
commitee7ae7ae1bf4271dd7e9c255c8a61a7adc188c7a
tree9c31f351156f06a9aaecfa81855cb40f603cadb2
parentc7e2d7adf0822ea58ca3d6e86fdc06572088f986
PR c++/85792 -Wctor-dtor-privacy and inherited constructor.

* class.c (maybe_warn_about_overly_private_class): Handle inherited
constructors.

From-SVN: r261459
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/g++.dg/warn/Wctor-dtor2.C [new file with mode: 0644]