> For example, here's what Intel Fortran says (once the error of the
> module and variable having the same name is fixed):
>
> t.f90(12) : Error: If the actual argument is scalar, the corresponding
> dummy
> argument shall be scalar unless the actual argument is an element of an
> array that
> is not an assumed-shape or pointer array, or a substring of such an
> element.
> [ARRAY]
> call sub(a)
Hmm. Does that mean that this call would be legal?
real :: arg(5)
call sub( arg(2) )
If that is legal and 'call sub(a)' is not, then I think Fortran 90 is a
pretty subtle language.
Drew
> -----^
>
> Steve Lionel
> Software Products Development
> Intel Corporation
> Nashua, NH
>
|