Bug ID: 78010
           Summary: --Wsuggest-override reports a redundant warning on a
                    'final' method
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot
          Reporter: a.volkov at rusbitech dot ru
  Target Milestone: ---


gcc reports a warning on a 'final' method which is not specified as 'virtual':
struct A {
  virtual void f();
struct B : A {
  void f() final;

There is no need to suggest adding override for B::f(): without the 'virtual'
specifier 'final' means that B::f() is an overrider.

Reply via email to