- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How about showing a whole program that demonstrates the problem. It isn't the PARAMETER.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page