From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8314 invoked by alias); 29 Jun 2012 15:05:01 -0000 Received: (qmail 8297 invoked by uid 22791); 29 Jun 2012 15:05:00 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Jun 2012 15:04:47 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53796] I/O INQUIRE of RECL: If not specified in OPEN, the default value should be returned (sequential access) Date: Fri, 29 Jun 2012 15:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg01971.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53796 --- Comment #8 from Tobias Burnus 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 speci=0Cer variables become unde=0Cned, except for variables in= the IOSTAT=3D and IOMSG=3D speci=0Cers (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).