http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59700

            Bug ID: 59700
           Summary: Misleading/buggy runtime error message: Bad integer
                    for item 0 in list input
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mvondomaros at gmail dot com

The following simple program yields:
> Fortran runtime error: Bad integer for item 0 in list input

But unless my understanding of an item in the list input is wrong, I would have
expected:
> Fortran runtime error: Bad integer for item 4 in list input

program foo

    integer :: myunit
    integer :: i1, i2, i3, i4

    open(newunit=myunit, file="test.dat")
    read(myunit, *) i1, i2, i3, i4
    close(myunit)
end program foo

file test.dat:
1 2 3 4.0

Reply via email to