C bitfields guarantees

Walter Bright newshound2 at digitalmars.com
Wed Jul 10 06:53:23 UTC 2024


On 7/9/2024 5:32 PM, Timon Gehr wrote:
>> The offset of `y` does not even respect its alignment! This is insanity.

That's right. It's not a bug, it matches what the associated C compiler does. 
It's the same thing as Steven pointed out. I posted how to portably get either 
arrangement.



More information about the Digitalmars-d mailing list