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

Nathan Sidwell nathan at codesourcery.com
Mon Aug 26 08:37:26 UTC 2002


Mark Mitchell wrote:

> > 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.

> Ah; I see what you're saying.  If everyone is doing it that way, we should
> just change the spec to reflect the way everyone is doing it, so I'll add
Although that would be an excellent solution, there'd be some awkwardness
explaining that C has a different layout to B
	struct B : A { int j : 2;};
At the momement, they should have the same layout.

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan at codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm.org



More information about the cxx-abi-dev mailing list