------- Comment #1 from burnus at gcc dot gnu dot org 2006-12-12 12:55 ------- The standard is very clear about it (Fortran 2003, but similar for Fortran 95):
"9.4.5 The OPEN statement" "If the STATUS= specifier has the value SCRATCH, the FILE= specifier shall not appear." One might want to allow it for -std=gnu or -std=legacy, however; I'm a bit ambivalent between downgrading the error to a warning for GNU or to leave the current status (aka "won't fix"). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30170