error #7836 with Intel Compiler

error #7836 with Intel Compiler

Dear all

I am using Intel(R)64, version 11.1.067 version.I continously encountered error # 7836 while compiling a FORTRAN code. From the debug report, I see that the problem is in the following part of the code:

INTEGER, PARAMETER :: nz=2, n=10
REAL, DIMENSION(1,nz) :: z
REAL:: sig, vsig
REAL, DIMENSION(1,n) :: pri




FUNCTION norf(x,mu,sigma,dim)

REAL, DIMENSION(1,dim) :: x, mu, sigma, norf
REAL, PARAMETER :: pi=3.14
do i=1,dim
end do

Please Please help!


4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Please post complete example source code. I don't know where to look for error messages by a numeric code (#7836), nor do I have the older version (11.0) that you mentioned; therefore, please post the text of the error message.

It appears that you are passing a scalar (sig) where the function declaration calls for a 2-D array.

Tip: To look up an Intel Fortran diagnostic by number, type:


where nnnn is the number, into the search box at the upper right. Indeed, this error is as mecej4 suggested. The standard generally prohibits passing a scalar to an array, except in certain circumstances. You probably got away with it before because it's an error most compilers don't diagnose by default in the absence of an explicit interface.. Intel Fortran does when generated interface checking is enabled.

An easy workaround is to surround the scalar arguments with [], turning them into array constructors. This works as long as you don't try to store to the argument.

Retired 12/31/2016

It works! Thanks Steve

Leave a Comment

Please sign in to add a comment. Not a member? Join today