class.c (maybe_warn_about_overly_private_class): Ignore public copy ctors.
authorNathan Sidwell <nathan@acm.org>
Mon, 17 Jul 2017 16:52:31 +0000 (16:52 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 17 Jul 2017 16:52:31 +0000 (16:52 +0000)
commita64559a5fc0373710a6f3ae7a8b569b439146fde
treef2f6029ec1f6a6fa4444abe933f6e90714369116
parent619018d4b9c3458e2d4aadfa42d30f5cd429f155
class.c (maybe_warn_about_overly_private_class): Ignore public copy ctors.

* class.c (maybe_warn_about_overly_private_class): Ignore public
copy ctors.

* g++.dg/warn/ctor-dtor-privacy-3.C: New.

From-SVN: r250281
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/ctor-dtor-privacy-3.C [new file with mode: 0644]