[LLVMbugs] [Bug 20479] New: MS ABI: Insufficient VFTable entries generated by clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 28 16:42:43 PDT 2014


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

            Bug ID: 20479
           Summary: MS ABI: Insufficient VFTable entries generated by
                    clang
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            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 A {
  virtual A *f() { return this; };
};

struct B : virtual A {
  virtual B *f() { return this; };
  B() {}
};

struct C : virtual A, B {};

C c;

clang has:
const C::`vftable'[0]: [thunk]:public: virtual struct A * __thiscall
B::f`vtordisp{4294967292,0}' (void)

MSVC has:
const C::`vftable'[0]: [thunk]:public: virtual struct B * __thiscall
B::f`vtordisp{4294967292,0}' (void)
const C::`vftable'[4]: public: virtual struct B * __thiscall B::f(void)


This bug can effect builds involving RTTI in interesting ways, this seems
pretty serious.

-- 
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/20140728/235dae20/attachment.html>


More information about the llvm-bugs mailing list