This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
bug in gfortran and direct access files???
- From: Vellieux Frederic <Frederic dot Vellieux at ibs dot fr>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 02 Nov 2009 17:58:09 +0100
- Subject: bug in gfortran and direct access files???
Dear gfortran developers,
I have a problem with writing to direct access files using gfortran (get
a run time error, "Fortran runtime error: Record number not allowed for
sequential access data transfer").
The error does not occur with code compiled using g77.
I am enclosing herewith a small program that gives this error.
Fred. Vellieux
PROGRAM TOTO
IREC=1
ISIZ1=1870
OPEN(UNIT=23,ACCESS='SEQUENTIAL',STATUS='SCRATCH',
. FORM='UNFORMATTED',RECL=ISIZ1)
WRITE(23,REC=IREC) IREC
END