PR c++/90884 - stray note with -Wctor-dtor-privacy.
authorMarek Polacek <polacek@redhat.com>
Fri, 14 Jun 2019 14:49:57 +0000 (14:49 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 14 Jun 2019 14:49:57 +0000 (14:49 +0000)
commit9f119e29269b9a63f36c014b1429e96c133148b4
tree6ce6406556c2c618431fdeb93737277392063b91
parentb27c10823418d58d70274ee3a7378e1aca21d418
PR c++/90884 - stray note with -Wctor-dtor-privacy.

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

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

From-SVN: r272291
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
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]