From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7692 invoked by alias); 27 Jan 2011 13:08:54 -0000 Received: (qmail 7657 invoked by uid 22791); 27 Jan 2011 13:08:53 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_PG 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; Thu, 27 Jan 2011 13:08:47 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/47434] Wrong field width for NaN with (F0.n) formatting X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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 Date: Thu, 27 Jan 2011 13:30:00 -0000 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-01/txt/msg02954.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #4 from Tobias Burnus 2011-01-27 13:08:22 UTC --- (In reply to comment #3) > Regarding the other cases: > Similarly for the '+' sign on Inf. Until now we have chosen to emit the > optional characters. Comparison with other compilers for the example of comment 3. a) Crayftn 7.2.4 Infinity Inf 0.00 .00 0.00 .00 b) ifort 11.1, PathScale 3.2.99, Open64 4.2.2.1, Infinity Inf 0.00 .00 0.00 .00 c) Sun Fortran 95 8.3, pgf90 10.5-0 Inf Inf 0.00 .00 0.00 .00 d) g95 4.03 (0.93) +Inf Inf .00 .00 .00 .00 e) xlf95/AIX V12.1 INF INF 0.00 .00 0.00 .00 f) NAG 5.1 <<< Yes, that's an zero-length string Inf .00 .00 .00 .00 g) g77: Does not like w = 0 and prints "inf" (small "i"), and ".00" for the other lines.