Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Typos in class-layout algorithm


  • To: cxx-abi@xxxxxxxxxxxxxxxxxxxx, Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Subject: Re: Typos in class-layout algorithm
  • From: dehnert@xxxxxxxxxxxxxxxxxxxx (Jim Dehnert)
  • Date: Tue, 21 Mar 2000 16:16:21 -0800 (PST)

> From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
> 
> The "Non-Virtual-Base Allocation" section in the data layout document
> still contains a couple of typos:
> 
>   Finally allocate any direct or indirect virtual base classes (except
>   the primary base class or any indirect primary base classes) as we did
>   non-virtual base classes in step II-1, in inheritance graph
>   order. Update sizeof(C) to max (sizeof(C), offset(D)+nvsize(D)). If
>   non-empty, also update align(C) and dsize(C) as in II-1.
> 
> II-1 is now about bitfields.  Why not just say that you should use
> II-2 if the virtual base is non-empty, and II-3 if it is empty?

Because the virtual bases don't update nvsize and nvalign.
Otherwise, I've got your fixes (plus one).  Thanks.

>   The primary base class has already been allocated in I-3a.
> 
> That's now I-2b.

-	    Jim Dehnert		dehnert@xxxxxxx
				(650)933-4272