This is the mail archive of the gcc-help@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: multiple inheritance abiguity


On 18 Jan 2006 21:22:11 -0600, Gabriel Dos Reis  wrote:
> The program is indeed in error. There are two kinds of ambiguity:
>  (1) name lookup ambiguity
>  (2) call ambiguity.
>
> Since overload resolution takes place only after name lookup, you
> can't expect overload resolution to pick C1::f, when you're already in
> trouble with (1).
>
> -- Gaby
>
Hi.

I can add that you can read further about it in
B. Stroustrup "The C++ Programming Language".
Exactly this case is explained there.

Regards,
 Dima.


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