[Bug c++/68391] -Wsuggest-override does not work on Item 12 of Effective Modern C++
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 22 11:15:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68391
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Alexander Volkov from comment #1)
> -Wsuggest-override should not produce warnings in this case, because none of
> members of Derived override virtual functions of Base.
>
> -Woverloaded-virtual has another meaning: "With this option, the compiler
> warns when you define a function with the same name as a virtual function,
> but with a type signature that does not match any declarations from the base
> class."
I guess since the reporter never replied, I'll close this bug based on this
reply.
More information about the Gcc-bugs
mailing list