-
Notifications
You must be signed in to change notification settings - Fork 330
Milestone
Description
The current bitfield implementation is consistent with how GCC/Clang does things, but as noted here and here MSVC packs in the opposite order with different behavior when the member types have different sizes.
FWIW, how to specify bit fields is not specified for C or C++
We could add an option to support this behavior. Changes would be necessary in SemanticsDeclAttributesVisitor::visitStructDecl(StructDecl* structDecl)
.
Implemented either as a compiler option or as an attribute on the containing struct.
Metadata
Metadata
Assignees
Labels
No labels