This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bogus name lookup by overloaded operators
- To: mrs at windriver dot com
- Subject: Re: Bogus name lookup by overloaded operators
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 11 Mar 2000 13:00:14 +0100
- CC: gcc-bugs at gcc dot gnu dot org, leob at mailcom dot com
- References: <200003110155.RAA04690@kankakee.wrs.com>
> 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