re PR c++/62232 (-Wnon-virtual-dtor shouldn't warn on final classes)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 18 Sep 2014 13:48:33 +0000 (13:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 18 Sep 2014 13:48:33 +0000 (13:48 +0000)
commitabce92087ba064d1f01be91d533389a0e1287f0e
tree05a508956a793433ff456468b92902c9f6d41a45
parent4666e1fb927e6b9ff9498a8023530182cba303f7
re PR c++/62232 (-Wnon-virtual-dtor shouldn't warn on final classes)

/cp
2014-09-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/62232
* class.c (finish_struct_1): Do not -Wnon-virtual-dtor warn
for final class types.

/testsuite
2014-09-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/62232
* g++.dg/cpp0x/Wdtor1.C: New.

From-SVN: r215351
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wdtor1.C [new file with mode: 0644]