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

            Bug ID: 19407
           Summary: Potential vtordisp bug
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            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 {};
struct B {};
struct C : A {
  virtual void fun() {}
};
struct D : virtual B, virtual C {
  virtual void fun() {}
  D() {}
};
int main() { printf("sizeof(D): %Iu\n", sizeof(D)); }

32-bit clang/MSVC

--- different.cpp_clang 2014-04-11 15:57:50.482628043 -0700
+++ different.cpp_vs    2014-04-11 15:57:50.462627835 -0700
@@ -1 +1 @@
-sizeof(D): 16
+sizeof(D): 12

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