Example 1: open(77,file="not-existing.dat",status="old") gfortran: At line 1 of file aaaa.f90 Fortran runtime error: No such file or directory ifort: forrtl: severe (29): file not found, unit 77, file /dev/shm/not-existing.dat Expected: Add (similar to ifort) also the file name (and maybe the unit number?) to the error message.
This should also be the case if no "file=" has been given, e.g. open(77,status="old") ifort: file not found, unit 77, file /dev/shm/fort.77 Reasoning: a) It is easier to see directly the needed file name than finding it in the source code b) The user might not have access to the source code Example 2: open(77,file="already-existing.dat",status="new") gfortran: At line 1 of file aaaa.f90 Fortran runtime error: File exists ifort: cannot overwrite existing file, unit 77, file /dev/shm/already-existing.dat Expected: Add (similar to ifort) also the file name (and maybe the unit number?) to the error message. -- Summary: Open errors (not/already exists etc.): show also the file name Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30005