This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strange behaviour in C++...



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]