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

Getting RunTime Check failure - variable 'R; used without being defined

ferrad
New User
375 Views
I'm geting the following error:
Run-Time Check Failure #3 - The variable 'R' is being used without being defined.
The trouble is I don't have any variables called R, not in the routine it breaks in, nor anywhere else (well I have a real, parameter :: R = 8314.4in one of the includes, but I'm sure it wouldn't complain with that?). I want to check for use of undefined variables, however this isn't helping me.
Any idea what's going on?
Adrian
0 Kudos
4 Replies
Steven_L_Intel1
Employee
375 Views
There is a bug in this feature, introduced some time after the initial 9.0 release, that causes the name of the variable in the message to be wrong nearly all the time. The fix for this is complicated but is in the works.

All I can suggest for now is to look at which variables are referenced at the point the error occurs.
0 Kudos
ferrad
New User
375 Views

Unfortunately it's on a return statement :(

Adrian

0 Kudos
Steven_L_Intel1
Employee
375 Views
Perhaps the function value was never defined?
0 Kudos
ferrad
New User
375 Views
Yes, spot on. :)
0 Kudos
Reply