public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* GCC3.4.2 selects incorrect function overload when an ellipsis overload is available
@ 2004-11-03 13:33 Lee-Thorp, Andrew
  2004-11-03 14:40 ` Giovanni Bajo
  0 siblings, 1 reply; 2+ messages in thread
From: Lee-Thorp, Andrew @ 2004-11-03 13:33 UTC (permalink / raw)
  To: gcc-bugs

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<B*>(0));
  f(static_cast<C*>(0)); // <- Line 42
}

Conversion.cc: In function `void error()':
Conversion.cc:42: error: `A' is an inaccessible base of `C'
=======================================================
 Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by email to postmaster@ndsuk.com and destroy the original message.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GCC3.4.2 selects incorrect function overload when an ellipsis overload is available
  2004-11-03 13:33 GCC3.4.2 selects incorrect function overload when an ellipsis overload is available Lee-Thorp, Andrew
@ 2004-11-03 14:40 ` Giovanni Bajo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2004-11-03 14:40 UTC (permalink / raw)
  To: Lee-Thorp, Andrew; +Cc: gcc-bugs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-03 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-03 13:33 GCC3.4.2 selects incorrect function overload when an ellipsis overload is available Lee-Thorp, Andrew
2004-11-03 14:40 ` Giovanni Bajo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).