[LLVMbugs] [Bug 21060] New: MS ABI: covariant pure virtual function takes two vftable slots instead of one

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 24 19:04:13 PDT 2014


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

            Bug ID: 21060
           Summary: MS ABI: covariant pure virtual function takes two
                    vftable slots instead of one
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

consider:
struct IA {
  virtual IA *f();
};
struct __declspec(dllexport) IB : virtual IA {
  virtual IB *f() = 0;
  IB() {}
};

we generate:
VFTable for 'IA' in 'IB' (2 entries).
   0 | IB *IB::f() [pure]
   1 | IB *IB::f() [pure]

However, MSVC has a vftable with a single entry.

-- 
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/20140925/762b237a/attachment.html>


More information about the llvm-bugs mailing list