Not sure what the standard says but the difference should probably be at least
release noted.
[EMAIL PROTECTED] ~]$ ifort -o testf test.f
[EMAIL PROTECTED] ~]$ ./testf
well done
[EMAIL PROTECTED] ~]$ gfortran -o testf test.f
[EMAIL PROTECTED] ~]$ ./testf
3
STOP io-err 91
[EMAIL PROTECTED] ~]$ cat test.f
program prefort
nt1=91
open(unit=nt1,iostat=ierr,form='formatted',file='/tmp/nt1'
1,err=91,status='scratch')
stop 'well done'
91 print *,ierr
stop 'io-err 91'
end
--
Summary: gfortran fails to open nonexisting file with status
scratch
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: joe at confucius dot gnacademy dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i586-mandrake-linux-gnu
GCC host triplet: i586-mandrake-linux-gnu
GCC target triplet: i586-mandrake-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21435