From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27945 invoked by alias); 5 May 2011 06:53:31 -0000 Received: (qmail 27936 invoked by uid 22791); 5 May 2011 06:53:31 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Thu, 05 May 2011 06:53:17 +0000 From: "thenlich at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/48852] Invalid spaces in list-directed output of complex constants 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: NEW 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" MIME-Version: 1.0 Date: Thu, 05 May 2011 06:53: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-05/txt/msg00404.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48852 --- Comment #4 from Thomas Henlich 2011-05-05 06:50:13 UTC --- (In reply to comment #3) > neither 0PFw.d nor 1PEw.dEe allow it). However, AFAICS leading blanks are still > allowed as they are part of the real parts, the prohibition against embedded > blanks in the complex output refer only to blanks other than the ones present > in the real fields, no? As much as I'd like to, I cannot agree: "The only embedded blanks permitted within a complex constant are between the separator and the end of a record and one blank at the beginning of the next record." An "embedded blank within a complex constant" is any blank which neither leads the complex constant nor trails it; in other words, any space between the left and the right parenthesis. It is not permitted, except around record breaks. If it is important, we can still ensure the tabular alignment of complex fields by right-flushing them in a field of width 2*w+3, where w is the width for a real constant.