public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/32456]  New: IO error message should show Unit/Filename
@ 2007-06-21 14:13 burnus at gcc dot gnu dot org
  2007-06-23  3:59 ` [Bug libfortran/32456] " jvdelisle at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-06-21 14:13 UTC (permalink / raw)
  To: gcc-bugs

! echo "z" > foo.dat
program test
  implicit none
  integer :: i
  open(99,file="foo.dat")
  read(99,*) i
  print *, i
end program

gfortran:
At line 5 of file x.f90
Fortran runtime error: Bad integer for item 1 in list input

Expected: gfortran prints out the filename and/or unit as other compilers do;
especially useful for users which don't have the source code.

g95:
At line 5 of file x.f90 (Unit 99 "foo.dat")
Fortran runtime error: Bad integer for item 1 in list input

NAG f95:
Invalid input for integer editing
Program terminated by I/O error on unit 99
(File="foo.dat",Formatted,Sequential)

ifort:
forrtl: severe (59): list-directed I/O syntax error, unit 99, file
/dev/shm/foo.dat

sunf95:
 Error 1083:  unexpected character in integer value
 Location:  the READ statement at line 5 of "x.f90"
 Unit:  99
 File:  foo.dat
 Input:  z

For stdin * they show (g95,NAG f95, ifort, sunf95):
At line 4 of file x.f90 (Unit 5)
Program terminated by I/O error on unit 5 (Input_Unit,Formatted,Sequential)
forrtl: severe (59): list-directed I/O syntax error, unit -4, file /dev/pts/0
 Unit:  *
 File:  standard input


-- 
           Summary: IO error message should show Unit/Filename
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          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=32456


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

end of thread, other threads:[~2007-07-02 23:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-21 14:13 [Bug libfortran/32456] New: IO error message should show Unit/Filename burnus at gcc dot gnu dot org
2007-06-23  3:59 ` [Bug libfortran/32456] " jvdelisle at gcc dot gnu dot org
2007-06-24 20:35 ` patchapp at dberlin dot org
2007-06-24 22:56 ` jvdelisle at gcc dot gnu dot org
2007-06-24 23:03 ` jvdelisle at gcc dot gnu dot org
2007-06-24 23:06 ` jvdelisle at gcc dot gnu dot org
2007-06-25  2:48 ` jvdelisle at gcc dot gnu dot org
2007-06-29  6:15 ` patchapp at dberlin dot org
2007-06-29 19:16 ` andreast at gcc dot gnu dot org
2007-06-29 19:39 ` jvdelisle at gcc dot gnu dot org
2007-07-02 23:29 ` kargl 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).