Bill Long wrote:
>>ifort is Intel's compiler. IBM is xlf. I would assume both give the error.
>>These error messages are correct.
>>The current standard (Fortran 2008) says this:
>>"A variable in a specification expression shall have its type and type
>>parameters, if any, specified by a previous declaration in the same
>>scoping unit, by the implicit typing rules in effect for the scoping
>>unit, or by host or use association. If a variable in a specification
>>expression is typed by the implicit typing rules, its appearance in any
>>subsequent type declaration statement shall confirm the implied type and
I see. Thank you for the clarification.
Now I see that the FORTRAN 77 standard also says something similar
with regard to dimension bounds, in 126.96.36.199,
"If the symbolic name of a constant or variable that appears in a
dimension bound expression is not of default implied integer type (4.1.2),
it must be specified as integer by an IMPLICIT statement or a
type-statement prior to its appearance in a dimension bound expression."
[log in to unmask]