[cxx-abi-dev] Tail padding, in sumary

Kerch Holt kerch at cup.hp.com
Fri Aug 23 17:32:55 UTC 2002


Mark Mitchell wrote:
>> You haven't mentioned
>>     struct A { virtual void f(); int i : 3; };
>>     struct C { A a; int j: 2; };
>> which should have the same layout as B. g++, intel & hp get this wrong.
> 
> 
> I'm sorry; I didn't understand that to be the case.
> 
> Intel, HP -- would you please confirm that your compilers pack C::j into 
> the
> same byte as A::i in this case?

Not for HP. The compiler doesn't share the byte in this case
( C::j has byte offset 8, bit offset 0).









More information about the cxx-abi-dev mailing list