------- Comment #4 from jpr at csc dot fi 2006-11-11 19:16 ------- Subject: Re: [4.3 Regression] -O2 gives wrong results
Note however that the prints inside the main loop are not needed to trigger the problem in the oroginal test code. You may freely remove them and the problem remains. I just added the prints to further demonstrate the problem... Juha > > > ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-11-11 14:11 > ------- > If we don't use it when the variable is uninitialized, we get the desired > result (note how I did not say the correct result as I think this code is > undefined and what we are getting is allowed by the C standard). > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29798 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29798