public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/30005]  New: Open errors (not/already exists etc.): show also the file name
@ 2006-11-28  8:46 burnus at gcc dot gnu dot org
  2006-12-03 20:16 ` [Bug libfortran/30005] " jvdelisle at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-11-28  8:46 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-07 14:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28  8:46 [Bug libfortran/30005] New: Open errors (not/already exists etc.): show also the file name burnus at gcc dot gnu dot org
2006-12-03 20:16 ` [Bug libfortran/30005] " jvdelisle at gcc dot gnu dot org
2006-12-03 22:45 ` jvdelisle at gcc dot gnu dot org
2006-12-04  5:20 ` patchapp at dberlin dot org
2006-12-05  0:51 ` jvdelisle at gcc dot gnu dot org
2006-12-05 20:40 ` burnus at gcc dot gnu dot org
2006-12-16  5:27 ` jvdelisle at gcc dot gnu dot org
2007-03-07 14:24 ` tkoenig at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).