Strange behaviour in C++...
Jerry Quinn
jquinn@nortelnetworks.com
Tue Aug 31 23:20:00 GMT 1999
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
More information about the Gcc
mailing list