(j3.2006) Problem with default expressions for kind type parameters?
Bill Long
longb
Fri Sep 21 17:23:50 EDT 2012
On 9/21/12 4:12 PM, Van Snyder wrote:
>
> Since
>
> type t(j,k)
> integer,kind :: j
> integer,kind :: k = j+1
> end type t
>
> is admitted by the syntax, and not prohibited by a constraint, the
> processor clearly needs to evaluate the "k" kind type parameter of an
> object when it is declared, not when the type is defined.
>
I would argue that the defect in the standard is that this form is
allowed at all.
Certainly interp fodder.
Cheers,
Bill
--
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101
More information about the J3
mailing list