This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/20068] Backspace problems


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]