------- Comment #5 from fxcoudert at gcc dot gnu dot org  2005-12-10 15:39 
-------
There are two errors on this one. The first is not a regression (happens with
4.0.3):

$ cat a.f90
  integer :: i = 1
  open(11,status="replace",form="unformatted")
  read(11,end=1008) i
1008 continue
  read(11,end=1011) i
1011 continue
  end
$ gfortran a.f90 && ./a.out
At line 5 of file a.f90
Fortran runtime error: Read past ENDFILE record


The second one is a regression (doesn't happen with 4.0.3).

$ cat a.f90                              
  integer :: i = 1
  open(11,status="replace",form="unformatted")
  write(11) dat
  read(11,end=1008) i
1008 continue
  backspace 11
  backspace 11
  backspace 11
  end
$ gfortran a.f90 && ./a.out
At line 8 of file a.f90
Fortran runtime error: Invalid argument

PS: sorry Janne for hinting that it might have been related to your patch.
Reducing this has been a bit painful.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.1.0 4.2.0
      Known to work|                            |4.0.3
   Last reconfirmed|2005-11-29 12:29:53         |2005-12-10 15:39:19
               date|                            |
            Summary|"Invalid argument" error on |[4.1/4.2 regression]
                   |I/O                         |"Invalid argument" error on
                   |                            |I/O


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

Reply via email to