Fixes for override/final.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 10 May 2011 17:58:30 +0000 (20:58 +0300)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 10 May 2011 17:58:30 +0000 (13:58 -0400)
commit7506ab1de576b07067bf3c0acb74f9d80ece7a86
tree710ca438091dba750c52619a7fc01f06e2c6aa0f
parentd26e59864b3ea46ad8d4671a3c55f86cf5f2fa94
Fixes for override/final.

* class.c (check_for_override): Diagnose final on a nonvirtual
member function, diagnose override for a virtual with no matching
override. Don't fiddle around with DECL_VINDEX.

From-SVN: r173626
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/virtual9.C