PR c++/78010 - bogus -Wsuggest-override warning on final function.
authorMarek Polacek <polacek@redhat.com>
Fri, 10 May 2019 14:53:30 +0000 (14:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 10 May 2019 14:53:30 +0000 (14:53 +0000)
commitd49b251f6d08fda3db606ac0e50cd28daac9eb33
tree0cd0fe282326fa27f3fbb599d007f4d3cbdb7bd3
parent93d2b7038de17c5a675c07490ab55b77af815604
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: r271065
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsuggest-override-2.C [new file with mode: 0644]