[Bug libfortran/17992] [4.0 only] reading empty line does not return 0

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 11 08:01:00 GMT 2005


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-04-11 08:01 -------
Can you try with a later build and tell us what your exact source and output is? 

$ cat psfres.dat 


$ cat pr17992.f 
      integer n,m
      open(unit=8,file='psfres.dat',status='unknown')
      read(8,'(/2i2)')n,m
      write(*,*)n,m
      end
$ gfortran -v
Using built-in specs.
Target: i386-linux
Configured with: ../gcc/configure --prefix=/tmp/gfortran-20050411/irun
--enable-languages=c,f95 --host=i386-linux
Thread model: posix
gcc version 4.1.0 20050411 (experimental)
$ gfortran pr17992.f && ./a.out
           0           0

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17992



More information about the Gcc-bugs mailing list