[Bug c++/65856] -Wsuggest-override shall not report a warning on final method

thomas.helfer at cea dot fr gcc-bugzilla@gcc.gnu.org
Thu Apr 23 17:45:00 GMT 2015


Helfer Thomas <thomas.helfer at cea dot fr> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Helfer Thomas <thomas.helfer at cea dot fr> ---
I must say that your example seems very artificial : to me, the only case where
final specifier may not imply the override one is when you create a virtual
method and immediately declare it final : in this case what is the meaning of
declaring the method virtual ? 

I can't find any good reason for this but I admit that, as this is allowed by
the standard, my enhancement proposition can't be accepted. So I am closing the

Thank you for your reply.


Helfer Thomas

More information about the Gcc-bugs mailing list