[LLVMbugs] [Bug 18474] New: [-cxx-abi microsoft] size calculation is wrong for aligned bitfield inside pragma-pack
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 14 11:00:08 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18474
Bug ID: 18474
Summary: [-cxx-abi microsoft] size calculation is wrong for
aligned bitfield inside pragma-pack
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
extern "C" int printf(const char *fmt, ...);
struct A {};
struct B {};
#pragma pack(push, 1)
struct __declspec(align(4)) C : A, B {
__declspec(align(8192)) int : 3;
};
#pragma pack(pop)
int main() { printf("sizeof(C): %u\n", sizeof(C)); }
MSVC gives:
sizeof(C): 8196
clang gives:
sizeof(C): 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/55f15738/attachment.html>
More information about the llvm-bugs
mailing list