http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31397

Michal Malecki <ethouris at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ethouris at gmail dot com

--- Comment #15 from Michal Malecki <ethouris at gmail dot com> ---
But it would be nice to add a warning, valid in C++11 mode only, when a method
is overridden without 'override' keyword, or an overloaded method is defined,
which does not override without explicit 'new'. For example,
-Wimplicit-override. Additionally, if [[base_check]] has been withdrawn, the
same idea can be additionally added as __attribute__((warn_implicit_override))
(or, in C++11, [[gnu::warn_implicit_override]]).

I don't think forcing a 'virtual' keyword would do things any better -
'virtual' can always mean starting a new virtual method in this class, which
does not override anything.

Reply via email to