]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
invoke (Wnon-virtual-dtor): Update to match implementation.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 8 Apr 2014 10:19:36 +0000 (10:19 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 8 Apr 2014 10:19:36 +0000 (10:19 +0000)
commit38f09da396c1b67bd9c78c77aa367bb0b230bd80
tree98523bded84202160ffdfcc9ad6330b05feec074
parent55f31857d3582c2533c8c2767b05f18f657d7b24
invoke (Wnon-virtual-dtor): Update to match implementation.

* doc/invoke (Wnon-virtual-dtor): Update to match implementation.
(Weffc++): Likewise.

cp/
* class.c (check_bases_and_members): Warn about non-virtual dtors
in public bases only.  Check warn_ecpp before complaining about
non-polymorphic bases.

testsuite/
* g++.dg/warn/Wnvdtor-2.C: Add more cases.
* g++.dg/warn/Wnvdtor-3.C: Likewise.
* g++.dg/warn/Wnvdtor-4.C: Likewise.

From-SVN: r209212
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wnvdtor-2.C
gcc/testsuite/g++.dg/warn/Wnvdtor-3.C
gcc/testsuite/g++.dg/warn/Wnvdtor-4.C