This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is it a bug in gfortran ?


Hello,

I would expect the following code to print     4.
But it prints 101 instead.

Is it a bug ?
Vladimir.
----------------------------------------------------------

character*10 s
s='1 2 3'
read(s,*,end=1) (x,i=1,100)
1 print *,i
end



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