This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20068] Backspace problems
- From: "coudert at clipper dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2005 10:33:35 -0000
- Subject: [Bug libfortran/20068] Backspace problems
- References: <20050218233447.20068.craig.powers@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From coudert at clipper dot ens dot fr 2005-02-22 10:33 -------
This is really weird:
$ cat a.f90
integer :: i
open (unit=20, file='data')
read(20,*) i
write(*,*) ' foo '
backspace(20)
read(20,*) i
end
$ cat data
1
2
3
$ gfortran a.f90 && ./a.out
foo
$ cat data
1
3
If the 'write' statement is commented, then the data file is not modified after
execution.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20068