PR c++/85792 -Wctor-dtor-privacy and inherited constructor.
commit20c8dab134976a2adb0766a6bc1fe34b6067c869
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jun 2018 21:49:36 +0000 (11 21:49 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jun 2018 21:49:36 +0000 (11 21:49 +0000)
tree9c31f351156f06a9aaecfa81855cb40f603cadb2
parent0bb30bd45dc8ec2d674f35702478caa09ce187db
PR c++/85792 -Wctor-dtor-privacy and inherited constructor.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261459 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/g++.dg/warn/Wctor-dtor2.C [new file with mode: 0644]