multiple inheritance abiguity

Dima Sorkin dima.sorkin@gmail.com
Thu Jan 19 09:46:00 GMT 2006


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.



More information about the Gcc-help mailing list