public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/65234] New: Output descriptor (*(1E15.7)) not accepted
@ 2015-02-27 12:19 vehre at gcc dot gnu.org
  2015-02-27 12:24 ` [Bug libfortran/65234] " dominiq at lps dot ens.fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-02-27 12:19 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-04-21 18:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 12:19 [Bug libfortran/65234] New: Output descriptor (*(1E15.7)) not accepted vehre at gcc dot gnu.org
2015-02-27 12:24 ` [Bug libfortran/65234] " dominiq at lps dot ens.fr
2015-02-27 12:24 ` vehre at gcc dot gnu.org
2015-02-27 20:33 ` jvdelisle at gcc dot gnu.org
2015-03-01  4:25 ` jvdelisle at gcc dot gnu.org
2015-04-12  7:49 ` dominiq at lps dot ens.fr
2015-04-21 18:23 ` jvdelisle at gcc dot gnu.org
2015-04-21 18:29 ` jvdelisle at gcc dot gnu.org
2015-04-21 18:29 ` jvdelisle at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).