The type of an actual argument does not match the corresponding formal parameter at a subroutine call.
Specifically, this error occurs when both the actual and formal parameter types are arrays, but the ranks (number of dimensions) of the arrays do not match.
This same kind of error can also happen when a FORTRAN dummy argument of type subroutine is invoked. That is, the subroutine that is invoked through a dummy argument might exhibit the same problem as can occur in a direct call. In this case the problem may or may not happen depending on what subroutine was passed to the dummy argument of subroutine type. There will be an additional observation in such cases that identifies the call site where the subroutine argument was passed in.
ID |
Observation |
Description |
---|---|---|
1 |
Call site |
The actual argument that was passed |
2 |
Definition |
The definition of the called procedure |
subroutine mysub(m) integer, dimension(2,3) :: m print *, m end integer, dimension(6) :: n n = 1 call mysub(n) ! rank of argument #1 and rank of dummy argument are different. end
Copyright © 2010, Intel Corporation. All rights reserved.