This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Strange behaviour in C++...
- To: "Christopher R. Jones" <cj@interlog.com>
- Subject: Re: Strange behaviour in C++...
- From: "Jerry Quinn" <jquinn@nortelnetworks.com>
- Date: Tue, 24 Aug 1999 12:37:16 -0400 (EDT)
- Cc: Fredrik Öhrström <d92-foh@nada.kth.se>, gcc@gcc.gnu.org
- References: <3.0.32.19990824115643.009815f0@mail.interlog.com>
gcc 2.95 on HPUX 10.20 also gives correct output.
> Using Borland 5.0 on WinNT:
> Alfa 1=42
> Alfa 2=42
> BetaAlfa=42
> Alfa 1=47
> Alfa 2=47
> GammaAlfa=47
> AlfaGammaAlfa=47
>
> >
> >The code below compiled with 2.95.1 (19990816)
> >(on a RedHat 5.2 system i386) produces:
> >
> >Alfa 1=42
> >Alfa 2=42
> >BetaAlfa=42
> >Alfa 1=47
> >Alfa 2=134580865
> >GammaAlfa=47
> >AlfaGammaAlfa=47
> >
> >Shouldn't Alfa 2 be 47 in the second creation?
> >
> >Cheers
> >Fredrik
--
Jerry Quinn Tel: (514) 761-8737
jquinn@nortelnetworks.com Fax: (514) 761-8505
Speech Recognition Research