http://llvm.org/bugs/show_bug.cgi?id=21051

            Bug ID: 21051
           Summary: Warn if a method is virtual final but does not
                    override anything.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

$ cat test.cc
class Base {
  virtual void F() final;
};
$ clang++ -fsyntax-only -std=c++11 test.cc

It might make sense to warn about this, since there's no point in having a
virtual that can never be overridden.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to