[LLVMbugs] [Bug 18467] New: [-cxx-abi microsoft] wrong layout involving empty base class at offset 0
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jan 13 17:46:31 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18467
Bug ID: 18467
Summary: [-cxx-abi microsoft] wrong layout involving empty base
class at offset 0
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
extern "C" int printf(const char *fmt, ...);
struct A {};
struct B {
int field;
};
struct C : public A, public B {};
struct D : public C, public A, public B {};
int main() {
printf("sizeof(D): %d\n", sizeof(D));
}
we get:
sizeof(D): 12
we should get:
sizeof(D): 8
--
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/20140114/c4e41c31/attachment.html>
More information about the llvm-bugs
mailing list