[Bug c++/68391] -Wsuggest-override does not work on Item 12 of Effective Modern C++

a.volkov at rusbitech dot ru gcc-bugzilla@gcc.gnu.org
Thu Oct 13 10:21:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68391

Alexander Volkov <a.volkov at rusbitech dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.volkov at rusbitech dot ru

--- Comment #1 from Alexander Volkov <a.volkov at rusbitech dot ru> ---
-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."


More information about the Gcc-bugs mailing list