[C++] deprecate overload resolution extension?
Nathan Sidwell
nathan@codesourcery.com
Tue Feb 27 02:27:00 GMT 2001
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
More information about the Gcc
mailing list