--- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-03 21:03
---
This is not a bug.
[13.3.3.2]/2 says that a standard conversion sequence is better
than an ellipsis conversion sequence.
The note in [13.3]/1 says:
The function selected by overload resolution is not guar
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-03 20:57
---
Note ICC 8.0 also rejects this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18289
));
f(static_cast(0)); // <- Line 42
}
Conversion.cc: In function `void error()':
Conversion.cc:42: error: `A' is an inaccessible base of `C'
--
Summary: GCC3.4.2 selects incorrect function overload when an
ellipsis overload is available
Lee-Thorp, Andrew wrote:
> GCC 3.4.2 selects an 'unavailable' function overload.
> Platform is Cygwin on Windows 2000.
Please, submit a bug report through our Bugzilla interface
(http://gcc.gnu.org/bugzilla).
Thanks.
Giovanni Bajo
GCC 3.4.2 selects an 'unavailable' function overload.
Platform is Cygwin on Windows 2000.
See the example below.
class A {};
class B : public A {};
class C : private A {};
void f(...);
void f(A*);
void error()
{
f(static_cast(0));
f(static_cast(0)); // <- Line 42
}
Conversion.cc: In functio