The testcase:
struct Z { int :1; int :0; int :1; } z;
The zero width field causes the second :1 field
to start at bit 32. This requires inserting 24 bits
of padding. For some obscure reason the padding logic
subtracts the number of bits of padding from the new
field size before adding it,
On Apr 17, 2007, at 1:29 PM, Duncan Sands wrote:
The testcase:
struct Z { int :1; int :0; int :1; } z;
The zero width field causes the second :1 field
to start at bit 32. This requires inserting 24 bits
of padding. For some obscure reason the padding logic
subtracts the number of bits of