This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ambiguous base class


Matt Austern wrote:

The relevant part of the Standard is 3.4.3, I think. I read it,
No, 3.4.5 applies for lookup after . and ->
The relevant para appears to be 4, which doesn't explicitly mention
	ptr->IntermediateBase::FinalBase::member
but does say that the class name doesn't have to be a unique base
of the class type of the object expression, as long as
the entitiy named by the qualified id are members of the class type
of the object expression and not ambiguous.
The class type of the object expression is the static type of the
thing before the ->.

<handwaving>
The std seems to consider qualified ids as
	context-type-thing::(qualified-id-chain)::final-thing
rather than
	((context-type-thing::qualified-id0)::qualified-idn)::final-thing

nathan

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]