I need to find which devilry makes me crashes all this week.
How correctly make just one function in the module to be compiled with, say, several directives like /CHECK etc while the rest of module to leave compiled with /NOCHECK?
If i use OPTIONS(CHECK) in front of one specific function will it also affect all other functions/subroutines in the module after it? Is it even legal to do that in the module which has many functions inside of it and is a single file?
In the days of Fortran77 with its clear LEGO-like structure when modules did not exist this was easily done. You could also without any troubles extract your specific subroutine into the external file. Now with modules you rapidly run into the hell if you try to extract any function out of the module into another module and try cross reference by using something from one in another
Now no matter where i place the line
OPTIONS(CHECK)
(before function, inside function, I always get diagnostics
*** Error 398: OPTIONS must not appear inside a sub-program definition
Then how to make just one subroutine/function inside one large module which is also one file to compiled with special compilation conditions ?
And that line appears the the wrong place of the error report (by the way do anyone else last couple years gets also this problem when the error is shown in the wrong place ?)