[cxx-abi-dev] Incorrect example in abi-examples

Nathan Sidwell nathan at codesourcery.com
Tue Aug 27 10:32:55 UTC 2002


michaelw at ca.ibm.com wrote:
> Primary(Most_Derived)=Interface1 since it is the first virtual nearly empty
> primary. Most_Derived cannot take Concrete1 since it is virtually inherited
> and is not nearly empty.
> So Interface2 loses its primary
I agree.

	b.If C has a dynamic base class, attempt to choose a primary base
	class B. It is the first (in direct base class order) non-virtual
	dynamic base class, if one exists. Otherwise, it is a nearly empty
	virtual base class, the first one in (preorder) inheritance graph
	order which is not an indirect primary base class if any exist, or
	just the first one if they are all indirect primaries.

here, they are all indirect primaries, so we pick the first.

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