This is the mail archive of the gcc@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: Deprecate g++ overloading extension?


On Fri, 2 Jul 2004 10:13:58 -0700, Mark Mitchell <mark@codesourcery.com> wrote:

> We have an undocumented extension to overload resolution in "joust".
> Unless we're being pedantic, we make a try at resolving ambiguities by
> choosing the function whose worst conversion is least bad.
>
> I haven't seen any sign that the committee is considering extending
> the overload rules in this way, and since this is totally
> undocumented, people using this alleged feature are presumably doing
> so purely by accident.
>
> What do you think about removing this extension from non-pedantic
> compilation?

I'm opposed to removing it.  We already give an unconditional pedwarn which
tells the user what's wrong with their code.  Simply declaring it ambiguous
would be a usability regression.

Jason


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