Argument count mismatch at call to intrinsic function

The number of actual parameters does not match the number of formal parameters at a call to an intrinsic function.

Note that 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 be an intrinsic function, and the number of arguments passed to the dummy argument may not agree with the intrinsic. In this case there will be an additional observation that identifies the call site where the subroutine argument was passed in.

ID

Observation

Description

1

Call site

The actual arguments that were passed

Example

          
real function f1()
f1 = 3.14
end

subroutine f2(sub)
external sub
print *,sub() !note sub called with no arguments
end

external f1
intrinsic sin
interface
subroutine f2(sub)
external sub
end subroutine f2(sub)
end interface

call f2(f1)
call f2(sin) !will call sin with wrong number of arguments
end
        

Copyright © 2010, Intel Corporation. All rights reserved.