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

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 23 09:02:00 GMT 2015


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think the following may be used as a test case.

struct A
{
  virtual void f ();
};

struct B : A
{
  virtual void f () final;
};



More information about the Gcc-bugs mailing list