Layout of structures: one more tweak

Mark Mitchell mark at codesourcery.com
Mon Mar 13 06:44:39 UTC 2000


Folks --

  The layout of Non-POD Class Types is still a little bit unclear on
one point: the handling of data members whose type is a zero-sized
class.  For one thing, II.2 says "if D is not an empty base class",
which does not seem to allow a data member with non-zero size, even
though such things are clearly intended to be handled in this
paragraph.  I think that zero-sized data members were intended to be
handled there, as well.  So, I think II.2 should say:

  "if D is not an empty base class, or is a data member (of zero or
   non-zero size), ..."

  Anybody disagree?

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list