This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Fix FMT= with CHARACTER arrays (PR fortran/39865, take 3)
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: TimothyPrince at sbcglobal dot net, burnus at net-b dot de, jvdelisle at verizon dot net, sgk at troutmask dot apl dot washington dot edu, jakub at redhat dot com, tobias dot schlueter at physik dot uni-muenchen dot de
- Date: Thu, 14 May 2009 10:42:59 +0200
- Subject: 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