Bogus name lookup by overloaded operators
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sat Mar 11 04:13:00 GMT 2000
> I was kinda surprised we _made_ using not work:
>
> Each of these declarations that was introduced by a
> using-declaration is considered to be from each sub-object of C that
> is of the type containing the declaration designated by the
> using-declaration.94)
>
> 94) Note that using-declarations cannot be used to resolve inherited
> member ambiguities; see 7.3.3.
>
> otherwise, I would have just said, put in your using decls and be done
> with it.
Please have a look at Core Issue 39; it proposes exactly what you
propose. It also points out that this text is in direct contradiction
to 7.3.3/12.
Of course, it would not help in g++, since it does not implement using
decls correctly.
Regards,
Martin
More information about the Gcc-bugs
mailing list