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

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 23 18:25:00 GMT 2015


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

--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Helfer Thomas from comment #7)
> can you give me the rationale of this usage ?

Performance. 
See also -Wsuggest-final-types -Wsuggest-final-methods in the gcc manual.

Although Stroustrup recommends to not use "final" blindly, without prior
measurements (20.3.4.2., TC++PL 4th edition).



More information about the Gcc-bugs mailing list