[LLVMbugs] [Bug 19413] New: MS ABI: Insufficient vtordisps generated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 12 17:47:52 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140413/67f2f805/attachment.html>


More information about the llvm-bugs mailing list