From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7405 invoked by alias); 27 Feb 2015 11:28:19 -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 Received: (qmail 7333 invoked by uid 48); 27 Feb 2015 11:28:11 -0000 From: "vehre at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/65234] New: Output descriptor (*(1E15.7)) not accepted Date: Fri, 27 Feb 2015 12:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vehre 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg03041.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65234 Bug ID: 65234 Summary: Output descriptor (*(1E15.7)) not accepted Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: vehre at gcc dot gnu.org An output descriptor of the kind '(*(1E15.7))' is not accepted by the gfortran runtime library, but the error message: Fortran runtime error: '*' requires at least one associated data descriptor (*(1E15.7)) ^ is emitted. Now, for a repeat specifier of 1 this makes not much sense, besides that F2003 and F2008 seem to define this kind of output specifier to be valid. See F2008, 10.3.1,: R1003 format-items is format-item [ [ , ] format-item ] ... R1004 format-item is [ r ] data-edit-desc or control-edit-desc or char-string-edit-desc or [ r ] ( format-items ) R1005 unlimited-format-item is * ( format-items ) R1006 r is int-literal-constant What for example if one wants to emit/read an even number of floats like with: '(*(2E15.7))'? During research Dominique and Tobias found that '(*(2(E15.7)))' is accepted. The attached example shows that '(*(2(E15.7)))' is accepted while '(*(2E15.7))' not.