re PR c++/7302 (-Wnon-virtual-dtor should't complain of protected dtor)
authorPawel Sikora <pluto@pld-linux.org>
Mon, 20 Aug 2007 15:08:24 +0000 (15:08 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Aug 2007 15:08:24 +0000 (11:08 -0400)
commit43f1474491615c9c895716ef0e2a01d0280b1ef1
tree89dd492f0749e3baf99fc3690e6259c93197aed0
parent01a2a2f512b20d95ac7cc229662787fa0babfdf0
re PR c++/7302 (-Wnon-virtual-dtor should't complain of protected dtor)

        PR c++/7302
        * cp/class.c (finish_struct_1): Warn when a class has virtual
        functions and accessible non-virtual destructor.

        * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.

        * g++.dg/warn/Wnvdtor-2.C: New testcase.

From-SVN: r127649
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wnvdtor-2.C [new file with mode: 0644]