]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/90884 - stray note with -Wctor-dtor-privacy.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Jun 2019 14:49:57 +0000 (14:49 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Jun 2019 14:49:57 +0000 (14:49 +0000)
commit5f613a37a20a3ac1a98f2c5c393089fe51508e03
tree6ce6406556c2c618431fdeb93737277392063b91
parent1675300674498a7ecb9c41443156abccc2bbe04e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272291 138bc75d-0d04-0410-961f-82ee72b054a4
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]