- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I just ran the static verifier on a program I have been using for years without any problem and was presented with 415 errors.
The bulk of these errors are related toallocatable variables made available through a use statement.
The allocatable variables are declared in a module with the SAVE attribute. On initialisation of the program all these variables are allocated and made available through use statement.
For some reason the static verifier complains, in all routines that use these allocated variables, about inconsistent declaration. For example:
[SV] inconsistent declaration of record "RDDED" (wrong type)
I this really improper coding?
Another thing is that the static verifier complains about uninitialized character strings that have been initialized through an internal write statement. This happens only now and then, so I can live with that.
Also the static verifier complains about functions be called as subroutine ([SV] function "UPCASE" is called as subroutine), where the function is called as:
integer
function CheckForDuplicateMRU(szNewItem)implicit nonecharacter(len=*), intent(in) :: szNewItemcharacter(len=MAX_PATH) :: Upcaseinteger(4) :: ido i=1,MRUcountif (Upcase(szNewItem)==Upcase(MRUstr(i))) thenCheckForDuplicateMRU=i
returnendifenddoCheckForDuplicateMRU=NotFound
end function
CheckForDuplicateMRU
Is this also a coding error?
Regards,
Walter Kramer
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Steve,
I was wrong about the faulty error detection with internal write. I submitted an issue at premier support for the other two(supposedly) wrong types of error detection.
Regards,
Walter Kramer

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