This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Error in egcs on solaris
- To: Klavs Wismann <kw at oedan dot dk>
- Subject: Re: Error in egcs on solaris
- From: dvv at dvv dot ru (Dima Volodin)
- Date: Fri, 14 May 1999 16:26:25 GMT
- Cc: egcs-bugs at egcs dot cygnus dot com
- Organization: Huh?
- References: <Pine.SO4.4.05.9905141624320.1184-101000@ods28.oedan.dk>
It's a bug in g++ - the compiler shouldn't have let you get away with
this cast:
x.Set(&x, (Method) &X::bug);
^^^^^^^^^^^^^^^^
Dima
On Fri, 14 May 1999 16:25:08 +0200 (MET DST), you wrote:
>
>Does anybody have any comments to this?
>
>Best regards,
>--------------------------------------------------------------------------
> Klavs Wismann -------------
> Odegaard A/S | /\ | telephone: +45 35 26 60 11
> 1, Kroghsgade |__/ \ /\___| telefax: +45 35 26 50 18
> 2100 Copenhagen East | \/ | e-mail: kw@oedan.dk
> Denmark ------------- home page: www.oedegaard.com
>--------------------------------------------------------------------------
>
>---------- Forwarded message ----------
>Date: Fri, 7 May 1999 10:58:54 +0200 (MET DST)
>From: Klavs Wismann <kw@oedan.dk>
>To: egcs-bugs@egcs.cygnus.com
>Subject: Error in egcs on solaris
>
>
>I'm using egcs-1.1.2 on solaris 2.6, Sun Ultra 5.
>
>I have a problem executing this small program test.C. The output should
>be:
>before2
>before
>bug
>after
>after2
>(This is produced with same program test.C and compiler on AIX 4.2.1)
>
>but solaris produces:
>before2
>before
>bug
>after2
>
>Somehow the 'Method bug' method does not return to Callback::Call.
>
>As I said earlier the same code and compiler works fine on AIX.
>
>Can anyone tell what is wrong and hopefully provide a fix?!?!?!
>
>
>Best regards,
>--------------------------------------------------------------------------
> Klavs Wismann -------------
> Odegaard A/S | /\ | telephone: +45 35 26 60 11
> 1, Kroghsgade |__/ \ /\___| telefax: +45 35 26 50 18
> 2100 Copenhagen East | \/ | e-mail: kw@oedan.dk
> Denmark ------------- home page: www.oedegaard.com
>--------------------------------------------------------------------------