public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59700] New: Misleading/buggy runtime error message: Bad integer for item 0 in list input
@ 2014-01-06 14:45 mvondomaros at gmail dot com
  2014-01-06 23:24 ` [Bug fortran/59700] [4.8/4.9 Regression] " kargl at gcc dot gnu.org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: mvondomaros at gmail dot com @ 2014-01-06 14:45 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2014-02-22  2:53 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 14:45 [Bug fortran/59700] New: Misleading/buggy runtime error message: Bad integer for item 0 in list input mvondomaros at gmail dot com
2014-01-06 23:24 ` [Bug fortran/59700] [4.8/4.9 Regression] " kargl at gcc dot gnu.org
2014-01-07 11:54 ` rguenth at gcc dot gnu.org
2014-01-09  9:27 ` dominiq at lps dot ens.fr
2014-01-09 15:39 ` sgk at troutmask dot apl.washington.edu
2014-01-09 15:44 ` sgk at troutmask dot apl.washington.edu
2014-01-09 20:41 ` dominiq at lps dot ens.fr
2014-01-09 20:58 ` dominiq at lps dot ens.fr
2014-01-09 21:09 ` sgk at troutmask dot apl.washington.edu
2014-01-09 21:27 ` dominiq at lps dot ens.fr
2014-01-09 21:39 ` sgk at troutmask dot apl.washington.edu
2014-01-09 22:48 ` dominiq at lps dot ens.fr
2014-01-10  4:18 ` jvdelisle at gcc dot gnu.org
2014-01-10 17:09 ` jvdelisle at gcc dot gnu.org
2014-01-10 22:29 ` dominiq at lps dot ens.fr
2014-01-10 22:39 ` jvdelisle at gcc dot gnu.org
2014-01-10 23:11 ` sgk at troutmask dot apl.washington.edu
2014-01-11  0:55 ` dominiq at lps dot ens.fr
2014-01-11 18:57 ` jvdelisle at gcc dot gnu.org
2014-01-11 21:39 ` jvdelisle at gcc dot gnu.org
2014-02-22  0:02 ` jvdelisle at gcc dot gnu.org
2014-02-22  0:34 ` sgk at troutmask dot apl.washington.edu
2014-02-22  2:12 ` jvdelisle at gcc dot gnu.org
2014-02-22  2:51 ` jvdelisle at gcc dot gnu.org
2014-02-22  2:53 ` jvdelisle at gcc dot gnu.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).