[cxx-abi] Re: [cxx-abi-dev] Tail padding, in sumary
Nathan Sidwell
nathan at codesourcery.com
Mon Aug 26 18:07:45 UTC 2002
"Nelson, Clark" wrote:
> struct X { int x: 1; };
> struct Y { struct X x; int y: 1; };
>
> I think it would be far more awkward to explain that you can't copy the x
> member using memcpy without running the risk of modifying y. Note that this
> case is expressible in C. Surely the base (C) ABI doesn't have x and y
> overlapping at the byte level.
No this is different, in your example, X is PoD, and so its tail
padding is not useable. The cases we're talking about concern a non-PoD
A, and so by definition is not expressible in C.
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