This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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 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

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