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

milan at cmm dot ki dot si gcc-bugzilla@gcc.gnu.org
Thu Jan 6 23:16:00 GMT 2005


------- Additional Comments From milan at cmm dot ki dot si  2005-01-06 23:16 -------
> 
> we are trying to read 3 things, the '/' which consumes the first /n, then two
> numbers (each I2).  the file has 2 /n's in it.
> 

I simplified thing and threw out the / from format specification. If I put 2
empty lines in the psfres.dat file I get the two zeros. This is improvement!! I
am using 4.0.0-20041212 snapshot. But still I need only one empty line for g77.
However if I put only 2 space characters in the one line psfres.dat then I get 2
zeros. So we are almoste there.... I think this is what always worked in fortran
even in the days of punch cards: the blank card always produced zeros when read
in the input deck.



-- 


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



More information about the Gcc-bugs mailing list