This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/14762] New: [gfortran] "/" in format do not skip records correctly
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2004 19:33:12 -0000
- Subject: [Bug libfortran/14762] New: [gfortran] "/" in format do not skip records correctly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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