------- Comment #4 from jvdelisle at gcc dot gnu dot org  2010-06-12 22:33 
-------
How about this when attempting a READ or WRITE after an ENDFILE. (original
testcase)

$ gfc pr44477.f90 
$ ./a.out 
At line 5 of file pr44477.f90 (unit = 10, file = 'XXX')
Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker,
possibly use REWIND or BACKSPACE

and then this for an ENDFILE after an ENDFILE.

$ ./a.out 
At line 5 of file pr44477.f90 (unit = 10, file = 'XXX')
Fortran runtime error: Cannot perform ENDFILE on a file already positiond after
the EOF marker

Patch testing.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-06-12 22:33:42
               date|                            |


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

Reply via email to