- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When checking interfaces, I get warnings for use of the generic ABS function whenever integer arguments are used.
"Elemental Intrinsic Function (Generic): Computes an absolute value.
Syntax
result=ABS(a)
a
(Input) Must be of type integer, real, or complex"
Am I misreading the intenet of the documentation?Should I change all references to ABS to the type specific version?
Also, I get thewarning sometimes when no use of ABS is in the program being compiled--when clicking on the error message, it throw me to the first line of the file instead of an offending use (which doesn't exist in that file, but may exist in one compiled previouslyduring the build)...
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Example, please. I can't reproduce the problem. Are you perhaps using ABS in a specification expression in a routine interface? This is ok, but if there was some earlier version of a routine with a specification expression you might have a generated interface module left over.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There was no generated interface for ABS in the output directory, but there werethree calls to a routine that has ABS(arg) in the call. I removed these and the warning went away...
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd still like to understand what triggered the error. Can you fabricate a small example? So far nothing I have tried has shown a problem.

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