[Patch, Fortran] PR fortran/35770: Wrong implicit character typing
Tobias Burnus
burnus@net-b.de
Fri Sep 12 21:05:00 GMT 2008
Hi Daniel,
> Is there implicit typing of arrays?
No. Or actually: You need to provide the "DIMENSION" but the typing
can be done via the IMPLICIT line.
> Like
> IMPLICIT INTEGER(5) (a)
Well, if gfortran had a kind=5 integer it would be valid ;-)
If you check the standard, you find that a declaration-type-spec is
needed, which is defined as:
R502 declaration-type-spec is intrinsic-type-spec
or TYPE ( derived-type-spec )
or CLASS ( derived-type-spec )
or CLASS ( * )
and intrinsic-type-spec is
R403 intrinsic-type-spec is INTEGER [ kind-selector ]
or REAL [ kind-selector ]
or DOUBLE PRECISION
or COMPLEX [ kind-selector ]
or CHARACTER [ char-selector ]
or LOGICAL [ kind-selector ]
R404 kind-selector is ( [ KIND = ] scalar-int-initialization-expr )
> Patch is regression testing on GNU/Linux-x86-32. Ok for trunk
> (and 4.3?) if no regressions?
OK for both. Thanks for looking at and fixing the F95 bugs!
Tobias
More information about the Fortran
mailing list