[LLVMbugs] [Bug 19414] New: MS ABI: Layout incompatibility for aligned bitfield following normal bitfield of same size class
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Apr 12 20:44:20 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19414
Bug ID: 19414
Summary: MS ABI: Layout incompatibility for aligned bitfield
following normal bitfield of same size class
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 {
short : 4;
__declspec(align(16)) short : 4;
};
int main() {
printf("sizeof(A): %Iu\n", sizeof(A));
}
msvc:
sizeof(A): 2
clang:
sizeof(A): 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/aed8ef8f/attachment.html>
More information about the llvm-bugs
mailing list