This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/14762] New: [gfortran] "/" in format do not skip records correctly


distilled from NIST FM104.FOR:

$ cat b.f
       INTEGER N(5)
       DATA N/1,2,3,4,5/
       OPEN(UNIT=7)
 100   FORMAT(I4)
       WRITE(7,100)N
       CLOSE(7)
       OPEN(7)
 200   FORMAT(I4,///I4)
       READ(7,200)I,J
       PRINT*,I,J
       CLOSE(7)
       END
$ gfortran b.f
$ ./a.out
           1            0
                       ^^^
                     should be 4



$ g77 b.f
$ ./a.out
 1 4
$ gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040326 (merged 20040307))

-- 
           Summary: [gfortran] "/" in format do not skip records correctly
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]