[Bug c++/18289] GCC3.4.2 selects incorrect function overload when an ellipsis overload is available

2004-11-03 Thread reichelt at gcc dot gnu dot org
--- 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

[Bug c++/18289] GCC3.4.2 selects incorrect function overload when an ellipsis overload is available

2004-11-03 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/18289] New: GCC3.4.2 selects incorrect function overload when an ellipsis overload is available

2004-11-03 Thread aleethorp at hotmail dot com
)); 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

Re: GCC3.4.2 selects incorrect function overload when an ellipsis overload is available

2004-11-03 Thread Giovanni Bajo
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

GCC3.4.2 selects incorrect function overload when an ellipsis overload is available

2004-11-03 Thread Lee-Thorp, Andrew
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