This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/17992] reading empty line does not return 0
- From: "milan at cmm dot ki dot si" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2005 23:16:23 -0000
- Subject: [Bug libfortran/17992] reading empty line does not return 0
- References: <20041014070923.17992.milan@cmm.ki.si>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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