This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53796] I/O INQUIRE of RECL: If not specified in OPEN, the default value should be returned (sequential access)
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jun 2012 15:04:47 +0000
- Subject: [Bug fortran/53796] I/O INQUIRE of RECL: If not specified in OPEN, the default value should be returned (sequential access)
- Auto-submitted: auto-generated
- References: <bug-53796-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53796
--- Comment #8 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-06-29 15:04:47 UTC ---
Steve Lionel points at the following:
"If an error condition occurs during execution of an INQUIRE statement, all of
the inquiry specier variables become undened, except for variables in the
IOSTAT= and IOMSG= speciers (if any)."
Thus, if the RECL of the connection is larger than huge(kind(recl_var)), one
has to raise an error.
The question is only how the default should be handled. As written, I do not
really understand the current algorithm. Namely, whether we effectively
implement huge(0_int64) by extending the chunks. Or whether we apply a lower
boundary by default.
Additionally, we have the problem that the internal IO descriptor is only of
kind int32 (cf. PR 44292).