This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78010] --Wsuggest-override reports a redundant warning on a 'final' method
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Apr 2017 17:36:05 +0000
- Subject: [Bug c++/78010] --Wsuggest-override reports a redundant warning on a 'final' method
- Auto-submitted: auto-generated
- References: <bug-78010-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78010
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rh-override
says that virtual functions should use exactly one of virtual, override or
final. Which agrees with the suggestion to not warn about functions that
already specify final.