This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix FMT= with CHARACTER arrays (PR fortran/39865, take 3)


Tim Prince wrote:
> I checked the manual for the f66 compiler I learned on, and nowhere is the
> fmt= specifier mentioned.  Nor does that F77 appendix C mention the
> possibility of using fmt= with Hollerith.  Thus my belief that fmt= was
> not in the standard until f77, when Hollerith had already been eliminated.

>From http://www.fortran.com/F77_std/rjcnf.html

Appendix C: Hollerith

...
No recommendation is made
regarding Hollerith under the guise of double precision or complex.
...

C5 Hollerith Format Specification

A format specification may be an array name of type integer, real, or
logical.

The leftmost characters of the specified entity must contain Hollerith data
that constitute a format specification when the statement is executed.

The format specification must be of the form described in 13.2.  It must
begin with a left parenthesis and must end with a right parenthesis.  Data
may follow the right parenthesis that ends the format specification and
have no effect.  Blank characters may precede the format specification.

A Hollerith format specification must not contain an apostrophe edit
descriptor or an H edit descriptor.
...

It is also my understanding the 'fmt=' is optional if the unit appears
as the first argument and format as the second one.

Cheers,

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]