This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Deprecate g++ overloading extension?
- From: Jason Merrill <jason at redhat dot com>
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 02 Jul 2004 13:23:11 -0400
- Subject: Re: Deprecate g++ overloading extension?
- References: <200407021713.i62HDwl9013277@sirius.codesourcery.com>
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