[llvm-bugs] [Bug 31220] New: broken -Wweak-vtables for clang-cl

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 30 17:49:25 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31220

            Bug ID: 31220
           Summary: broken -Wweak-vtables for clang-cl
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lectem at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

clang-cl -v
clang version 4.0.0 (trunk)
Target: i686-pc-windows-msvc
Thread model: posix

Using the following cpp files as a test file :

https://github.com/Microsoft/clang/blob/master/test/SemaCXX/warn-weak-vtables.cpp

I Get the following output: 

warn-weak-vtables.cpp(34,7):  warning: 'Parent' has no out-of-line virtual
method definitions; its vtable will be emitted in every translation
      unit [-Wweak-vtables]
class Parent {


(It prints the warning for 'A','Parent','Derived' ...)

As I understand it, it shouldn't happen (Parent has an out-of-line virtual
destructor, Derived has getFoo that is out-of-line...)

-- 
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/20161201/5c2e13e5/attachment-0001.html>


More information about the llvm-bugs mailing list