This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/29936] Missed constraint on RECL=specifier in unformatted sequential WRITE
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2006 02:10:43 -0000
- Subject: [Bug libfortran/29936] Missed constraint on RECL=specifier in unformatted sequential WRITE
- References: <bug-29936-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2006-11-23 02:10 -------
Actually the problem was that gfortran was failing to set the record length to
the value requested in the OPEN statement. Now as far as emitting an error or
warning I have a concern.
If the user specifies a RECL= and the size of the output list in a WRITE
exceeds that value, we should not lengthen the record. That implies truncating
the output list. Based on that I think we should issue a runtime error. If
the output list is shorter then RECL= then the balance of the record is
undefined and we can just continue on.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29936