]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/78010 - bogus -Wsuggest-override warning on final function.
authorMarek Polacek <polacek@redhat.com>
Fri, 10 May 2019 14:57:22 +0000 (14:57 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 10 May 2019 14:57:22 +0000 (14:57 +0000)
commit49cb28a4d10be5f0a0150175cdbf974df1adca9c
treeaec1d67d2788da0141e3a1bf34d8fba37144cb82
parent455ea3748a47cef10577e5bdca32c41448d4f47a
PR c++/78010 - bogus -Wsuggest-override warning on final function.

* class.c (check_for_override): Don't warn for final functions.

* g++.dg/warn/Wsuggest-override-2.C: New test.

From-SVN: r271066
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/g++.dg/warn/Wsuggest-override-2.C [new file with mode: 0644]