public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/14836] New: [gfortran] INQUIRE specifier NEXTREC not correct for direct access files
@ 2004-04-03 15:06 bdavis9659 at comcast dot net
2004-04-03 15:56 ` [Bug libfortran/14836] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-03 15:06 UTC (permalink / raw)
To: gcc-bugs
>From NIST test FM917.FOR
$ cat c.f
OPEN(UNIT=9, ACCESS='DIRECT', RECL=80, FORM='UNFORMATTED')
INQUIRE(UNIT=9,NEXTREC=NREC)
WRITE(UNIT=9,REC=5) 1
INQUIRE(UNIT=9,NEXTREC=NREC)
PRINT*,NREC
! IF (NREC.NE.6) CALL ABORT
READ(UNIT=9,REC=1) MVI
INQUIRE(UNIT=9,NEXTREC=NREC)
! IF (NREC.NE.2) CALL ABORT
PRINT*,NREC
END
$ gfortran c.f
$ ./a.out
2
3
$ g77 c.f
$ ./a.out
6
2
$ gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040401 (merged 20040324))
--
Summary: [gfortran] INQUIRE specifier NEXTREC not correct for
direct access files
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=14836
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/14836] [gfortran] INQUIRE specifier NEXTREC not correct for direct access files
2004-04-03 15:06 [Bug libfortran/14836] New: [gfortran] INQUIRE specifier NEXTREC not correct for direct access files bdavis9659 at comcast dot net
@ 2004-04-03 15:56 ` pinskia at gcc dot gnu dot org
2004-04-03 16:22 ` bdavis9659 at comcast dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-03 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-03 15:56 -------
In "3.5-tree-ssa 20040326 (merged 20040307)" I get a bus error but I think that was fixed lately.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14836
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/14836] [gfortran] INQUIRE specifier NEXTREC not correct for direct access files
2004-04-03 15:06 [Bug libfortran/14836] New: [gfortran] INQUIRE specifier NEXTREC not correct for direct access files bdavis9659 at comcast dot net
2004-04-03 15:56 ` [Bug libfortran/14836] " pinskia at gcc dot gnu dot org
@ 2004-04-03 16:22 ` bdavis9659 at comcast dot net
2004-04-04 2:40 ` cvs-commit at gcc dot gnu dot org
2004-04-04 3:01 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-03 16:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bdavis9659 at comcast dot net 2004-04-03 16:22 -------
proposed patch:
http://gcc.gnu.org/ml/fortran/2004-04/msg00030.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14836
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/14836] [gfortran] INQUIRE specifier NEXTREC not correct for direct access files
2004-04-03 15:06 [Bug libfortran/14836] New: [gfortran] INQUIRE specifier NEXTREC not correct for direct access files bdavis9659 at comcast dot net
2004-04-03 15:56 ` [Bug libfortran/14836] " pinskia at gcc dot gnu dot org
2004-04-03 16:22 ` bdavis9659 at comcast dot net
@ 2004-04-04 2:40 ` cvs-commit at gcc dot gnu dot org
2004-04-04 3:01 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-04 2:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-04 02:40 -------
Subject: Bug 14836
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: bdavis@gcc.gnu.org 2004-04-04 02:40:27
Modified files:
gcc/testsuite : ChangeLog.tree-ssa
libgfortran : ChangeLog
libgfortran/io : transfer.c
Added files:
gcc/testsuite/gfortran.fortran-torture/execute: inquire_3.f90
Log message:
PR gfortran/14836
*io/transfer.c (next_record): Update last_record for DIRECT.
*gfortran.fortran-torture/execute/inquire_3.f90: new test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.210&r2=1.1.2.211
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/inquire_3.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.39&r2=1.1.2.40
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.10&r2=1.1.2.11
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14836
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/14836] [gfortran] INQUIRE specifier NEXTREC not correct for direct access files
2004-04-03 15:06 [Bug libfortran/14836] New: [gfortran] INQUIRE specifier NEXTREC not correct for direct access files bdavis9659 at comcast dot net
` (2 preceding siblings ...)
2004-04-04 2:40 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-04 3:01 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-04 3:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-04 03:01 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14836
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-04-04 3:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-03 15:06 [Bug libfortran/14836] New: [gfortran] INQUIRE specifier NEXTREC not correct for direct access files bdavis9659 at comcast dot net
2004-04-03 15:56 ` [Bug libfortran/14836] " pinskia at gcc dot gnu dot org
2004-04-03 16:22 ` bdavis9659 at comcast dot net
2004-04-04 2:40 ` cvs-commit at gcc dot gnu dot org
2004-04-04 3:01 ` pinskia 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).