This is the mail archive of the gcc-bugs@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]

Re: Bogus name lookup by overloaded operators


> 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

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