------- Comment #14 from jb at gcc dot gnu dot org 2010-04-01 19:45 ------- (In reply to comment #13) > (In reply to comment #12) > > > > 0 > > '123456' > > 7 > > 'DDDDDDDDDDDDD' > > 113 > > > > I would expect '789' and 10. Am I wrong? > > > > On i686 I get with trunk rev.157914: > > 0 > '123456' > 7 > '789' > 11 > > > I get the same result with ifort 11.1 and Sunstudio 12.1 > when I replace call ftell(10,i) by i=ftell(10).
Fascinating. On x86_64-unknown-linux-gnu with 4.5 r157911 I get 0 '123456' 99 '789' 99 With r157914 I get 0 '123456' 7 'DDDDDDDDDDDDD' 113 I.e. same as Dominique. The correct result, I believe, is 0 '123456' 7 '789' 11 which is what I get with 4.1.2 and 4.4.0. Anyways, thanks for the bugreports guys, but since trunk freezes in 1h15min, a fix for this won't make 4.5.0. -- jb at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43605