From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8828 invoked by alias); 24 Jan 2011 14:37:48 -0000 Received: (qmail 8759 invoked by uid 22791); 24 Jan 2011 14:37:47 -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; Mon, 24 Jan 2011 14:37:41 +0000 From: "thenlich at users dot sourceforge.net" 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: thenlich at users dot sourceforge.net 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: 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: Mon, 24 Jan 2011 14:49: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/msg02463.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434 --- Comment #2 from Thomas Henlich 2011-01-24 14:37:29 UTC --- A similar issue occurs with the values +Infinity and 0.0: program testnan real :: i, n = 0.0, m = tiny(0.0) i = 1.0 / n print "(F0.2)", i print "(F3.2)", i print "(F0.2)", n print "(F3.2)", n print "(F0.2)", m print "(F3.2)", m end program testnan Output: +Inf Inf 0.00 .00 .00 .00 The expected chosen field width is 3 in all cases, exactly for the same reason demanded by 10.7.2.1(6)