You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full name of submitter (unless configured in github; will be published with the issue): Jim X
[basic.align] p1 says:
An object type imposes an alignment requirement on every object of that type;
[class.bit] p1 says:
Alignment of bit-fields is implementation-defined.
Consider this example:
structA{
char a: 2;
int b:3
};
[basic.align] p1 says the alignment requirement of int imposes on every object, including the bit-field. However, [class.bit] p1 says the alignment of A::b is implementation-defined. So, is the alignment of A::b a union of them, or just is implementation defined?
Suggested Resolution:
An object type imposes an alignment requirement on every object of that type other than bit-field;
The text was updated successfully, but these errors were encountered:
Full name of submitter (unless configured in github; will be published with the issue): Jim X
[basic.align] p1 says:
[class.bit] p1 says:
Consider this example:
[basic.align] p1 says the alignment requirement of
int
imposes on every object, including the bit-field. However, [class.bit] p1 says the alignment ofA::b
is implementation-defined. So, is the alignment ofA::b
a union of them, or just is implementation defined?Suggested Resolution:
The text was updated successfully, but these errors were encountered: