[LLVMbugs] [Bug 21051] New: Warn if a method is virtual final but does not override anything.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 23 22:03:56 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: dcheng at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140924/b1c76dbd/attachment.html>


More information about the llvm-bugs mailing list