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]

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


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