This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libfortran/29936] Missed constraint on RECL=specifier in unformatted sequential WRITE



------- 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


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