]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/90884 - stray note with -Wctor-dtor-privacy.
authorMarek Polacek <polacek@redhat.com>
Thu, 15 Aug 2019 18:35:07 +0000 (18:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 15 Aug 2019 18:35:07 +0000 (18:35 +0000)
commit3bc5b51175fa77f115bd61a83602b6b76977cf18
tree50704a7355a830cb2d54801a52468d0511fca3d8
parent8f236cea1dd0d7f4cd57e530e181619420d42fbb
PR c++/90884 - stray note with -Wctor-dtor-privacy.

* class.c (maybe_warn_about_overly_private_class): Guard the call to
inform.

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