The following should not produce a runtime error.
OPEN(8, FORM = 'unformatted', STATUS = 'scratch')
OPEN(8, FORM = 'unformatted', STATUS = 'scratch')
end
There may be other combinations of arguments to open that should not error,
See the following thread:
http://gcc.gnu.org/ml/fortran/2006-05/msg00307.html
--
Summary: Incorrect runtime error on multiple OPEN
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jvdelisle at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27704