E does not get padding, F does.  even:
struct G : virtual B0 { char a, b, c, d : 8; }
gets padding.


On Tue, Nov 5, 2013 at 3:13 PM, Richard Smith <[email protected]> wrote:

> On Tue, Nov 5, 2013 at 3:13 PM, Richard Smith <[email protected]>wrote:
>
>>
>>   Oh wow. That's ... weird. Patch LGTM.
>>
>>
>> ================
>> Comment at: test/Layout/ms-x86-bitfields-vbases.cpp:61
>> @@ +60,3 @@
>> +
>> +struct D : virtual B0 { char a : 1; char b; };
>> +
>> ----------------
>> What happens for:
>>
>>   struct E : virtual B0 { char a, b, c, d : 4, e : 4, : 0; };
>>
>
> ... and also
>
>   struct F : virtual B0 { char a, b, c, d : 4, e : 4; };
>
>
>> ? Do we get extra padding?
>>
>>
>> http://llvm-reviews.chandlerc.com/D2103
>>
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to