From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4424 invoked by alias); 5 Dec 2009 15:01:23 -0000 Received: (qmail 1240 invoked by uid 48); 5 Dec 2009 15:01:05 -0000 Date: Sat, 05 Dec 2009 15:01:00 -0000 Message-ID: <20091205150105.1239.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/41711] [F2008] BOZ format does not support reading large kind reals In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" 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: 2009-12/txt/msg00544.txt.bz2 ------- Comment #15 from burnus at gcc dot gnu dot org 2009-12-05 15:01 ------- (In reply to comment #14) > > According to a note I spotted on clf , reading and writing reals with BOZ is > > invalid, so what we are doing here is an extension. > Do you have a pointer? I have the following: "10.6.1 Numeric editing" "The I, B, O, Z, F, E, EN, ES, D, and G edit descriptors may be used to specify the input/output of integer, real, and complex data." [...] "(6) On output, with I, B, O, Z, and F editing, the specified value of the field width w may be zero. In such cases, the processor selects the smallest positive actual field width that does not result in a field filled with asterisks. The specified value of w shall not be zero on input." Thus it looks valid also for non-integers. However, going on one finds that the B, O, & Z edit descriptors are only mentioned in "10.6.1.1 Integer editing" whereas "10.6.1.2 Real and complex editing" starts with "The F, E, EN, ES, and D edit descriptors specify the editing of real and complex data. [...] The G edit descriptor also may be used to edit real and complex data." Thus, combining the two, using BOZ edit descriptors is invalid in F95/F2003. How about F2008? The first quote is essentially the same but one finds there: "10.7.2.3 Real and complex editing": "The G, B, O, and Z edit descriptors also may be used to edit real and complex data (10.7.5.2.2, 10.7.2.4)." -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-12-05 15:01:04 date| | Summary|BOZ format does not support |[F2008] BOZ format does not |reading large kind reals |support reading large kind | |reals http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41711