This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Is it a bug in gfortran ?
- From: "Vladimir Nazarov" <nazarov at gate dot sinica dot edu dot tw>
- To: <fortran at gcc dot gnu dot org>
- Date: Wed, 20 May 2009 06:59:46 +0800
- Subject: 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