This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: A latent IO bug
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>
- Date: Tue, 21 Nov 2006 20:37:15 -0800
- Subject: Re: A latent IO bug
- References: <4563D379.3010400@verizon.net>
On Tue, Nov 21, 2006 at 08:35:05PM -0800, Jerry DeLisle wrote:
> 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?
>
It looks like an independent bug, so I would suggest
fixing it now. You can then apply the patch to 4.2
and perhaps 4.1. We can't apply Thomas' patch to 4.1.
Hopefully, we can get some testing done in time for
4.2.
--
Steve