This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[C++] deprecate overload resolution extension?
- To: gcc at gcc dot gnu dot org
- Subject: [C++] deprecate overload resolution extension?
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Tue, 27 Feb 2001 10:31:48 +0000
- CC: jason at redhat dot com, mark at codesourcery dot com
- Organization: Codesourcery LLC
Hi,
we currently have an overload resolution extension, which is disabled
by pedantic. I think the extension is `safe' in that it makes otherwise
illformed programs compile, but it is unsafe in that it can confuse the
poor user. Here's the code from call.c
tweak:
/* Extension: If the worst conversion for one candidate is worse than the
worst conversion for the other, take the first. */
if (!pedantic)
{...
should we deprecate this one too? bug 643 is probably a result of
this extension.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org