This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
A latent IO bug
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Date: Tue, 21 Nov 2006 20:35:05 -0800
- Subject: A latent IO bug
The F95 standard in section 9.4.4.4.1 says:
"If the file is connected for unformatted sequential access, the record is
created with a length sufficient to hold the values from the output list. This
length shall be one of the set of allowed record lengths for the file and shall
not exceed the value specified in the RECL= specifier, if any, of the OPEN
statement that established the connection."
Currently, gfortran is ignoring the RECL= specifier in the OPEN statement, if
any, when writing. I discovered this while testing Thomas subrecord patch when
comparing with Ifort. Ifort gives the appropriate error.
I have a fix for this figured out. Shall I fix this now or combine it with
Thomas patch?
Jerry