Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29249 Discussions

PARAMETER show up as an "uninitialized variable" at execution time...

Richard_M_1
Beginner
407 Views
I have a piece of code that can (loosely) be considered to look as follows:


INTEGER*4 mgrd
PARAMETER (mgrd=50_4)

...

IF (i.gt.mgrd) THEN
...
END IF

When debugging this and asking the compiler to check initialization state at run time, it considers mgrd to be an uninitialized variable and not a run-time constant. I'm deducing this since the debugger breaks on the if statement and the only thing that actually doesn't have a value is mgrd.

Bug? or feature?

Dick Munroe
0 Kudos
1 Reply
Steven_L_Intel1
Employee
407 Views
How about showing a whole program that demonstrates the problem. It isn't the PARAMETER.
0 Kudos
Reply