From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29410 invoked by alias); 19 Aug 2011 06:16:54 -0000 Received: (qmail 29400 invoked by uid 22791); 19 Aug 2011 06:16:52 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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, 19 Aug 2011 06:16:37 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/50105] [4.6/4.7 Regression] I/O with g6.5 - wrong number of "**" shown Date: Fri, 19 Aug 2011 06:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Keywords: wrong-code 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: 4.6.2 X-Bugzilla-Changed-Fields: Target Milestone Summary 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" 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: 2011-08/txt/msg01638.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50105 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.6.2 Summary|Possibly: I/O with g6.5 - |[4.6/4.7 Regression] I/O |wrong number of "**" shown |with g6.5 - wrong number of | |"**" shown --- Comment #7 from Tobias Burnus 2011-08-19 06:15:56 UTC --- I find the analysis of Malcolm (as usual) convincing, he thinks the correct result is "** ". Thus, I marked it again as regression - and removed the "possibly" from the summary. Malcolm wrote at http://j3-fortran.org/pipermail/j3/2011-August/004594.html | The wording is quite tricky, you need to read it very carefully. | | It says (slight restructuring to make it clearer) | "On output, | (a) if an exponent exceeds its specified or implied width using the ... | G edit descriptor, | or | (b) the number of characters produced exceeds the field width, | [you get stars]" | | The bit that explicitly mentions G ***only applies to the exponent width | being exceeded***. | | That is not the case here. | | What about the number of characters produced? Well, as Robert says, the | F2.5 descriptor produces two characters (both stars) and the 4(' ') | produces another 4, making a total of 6, within the width of G6.5. | | Perhaps this is merely bad wording, but it goes back a long way (F77). And indeed not only gfortran < 4.6.0, g95, NAG and PGI but also g77 produces "** ". (While with gfortran >= 4.6.0, ifort, crayftn/open64/pathf95/sunf95 produce "******".) (We might still see an interpretation request confirming Malcolm's interpretation - or changing the standard such that "******" is correct; only the future will tell ...)