[LLVMbugs] [Bug 18263] New: Empty structs have 4-byte size in "-cxx-abi microsoft" mode
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 16 11:20:14 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18263
Bug ID: 18263
Summary: Empty structs have 4-byte size in "-cxx-abi microsoft"
mode
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: hans at chromium.org
CC: llvmbugs at cs.uiuc.edu, whunt at google.com
Classification: Unclassified
Empty structs have 4-byte size in "-cxx-abi microsoft" mode, see the
test/Sema/empty1.c test.
But the standard says they should be 0 bytes. MSVC rejects empty structs in C
mode, so I'm not sure entirely what layout it would give them.
And it's weird that -cxx-abi affects these sizes because we're not in C++ mode.
--
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/20131216/5087058f/attachment.html>
More information about the llvm-bugs
mailing list