[LLVMbugs] [Bug 19407] New: Potential vtordisp bug
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 11 15:52:30 PDT 2014
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: 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 {};
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140411/99965157/attachment.html>
More information about the llvm-bugs
mailing list