Is this conforming?
pure function f( space )
integer, intent(in) :: space( 1-hdepth: , 1-hdepth: , 1-hdepth: )
end function f
end module m
One compiler rejects this with:
Local variable "HDEPTH" must be a dummy argument
or in common to be used in a bounds specification expression.
Two other compilers accept with no warning.
R819 assumed-shape-spec is [ lower-bound ] :
R817 lower-bound is specification-expr
10.1.11 Specification expression, para7:
"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."
hdepth is a module variable which is IMPORTed
into the scope of the interface, which I think
makes it host associated?