I'm wondering if the following open statement should really fail. I have no strong opinion, but it would be convenient if it 'just' worked, like you can open an non-existing file and 'append'.
I guess it is related to the fact that /dev/null can't be seeked. > cat test.f90 OPEN(UNIT=7,FILE="/dev/null",FORM="FORMATTED",POSITION="APPEND",IOSTAT=istat) IF (istat.NE.0) STOP 1 END -- Summary: opening /dev/null for appending writes Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Joost dot VandeVondele at pci dot uzh dot ch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45723