https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90374

            Bug ID: 90374
           Summary: Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d
                    and ew.d e0 edit descriptors for output
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thenlich+gccbug at gmail dot com
  Target Milestone: ---

The new features of Fortran 2018 (ISO/IEC JTC1/SC22/WG5 N2145):

"5.5 d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors

It was anomalous that the field width w was allowed to be given as zero for
some output g editing, but not for d, e, es, en, and all g output editing. This
has been corrected. If the value is zero, the processor selects the smallest
positive actual field width that does not result in a field filled with
asterisks. A zero value for the field width is not permitted for input.

The g0.d edit descriptor can be used to specify the output of integer, logical,
and character data. It follows the rules for the i0, l1, and a edit
descriptors, respectively.

The value 0 may be given to an exponent digits parameter in an ew.d ee edit
descriptor. The effect of this is that the processor uses the minimum number of
digits required to represent the exponent value. This avoids leading zeros,
which are unsightly and can cause errors if the value is read in another
language."

This would be useful to have.

Reply via email to