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

            Bug ID: 19413
           Summary: MS ABI: Insufficient vtordisps generated
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

consider:
extern "C" int printf(const char *, ...);
struct A {
  virtual void fun() {}
};
#pragma vtordisp(2)
struct B : virtual A {};
#pragma vtordisp(0)
struct C : virtual B {};
int main() {
  printf("sizeof(C): %Iu\n", sizeof(C));
}

clang:
sizeof(C): 12

msvc:
sizeof(C): 16

-- 
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