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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to