[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


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

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
report.

Thank you for your reply.

Sincerly,

Helfer Thomas



More information about the Gcc-bugs mailing list