A latent IO bug

Jerry DeLisle jvdelisle@verizon.net
Wed Nov 22 04:42:00 GMT 2006


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



More information about the Fortran mailing list