- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am debugging a friend's code. At some point he calls a subroutine with the wrong number of arguments, actually he gives more actual arguments than dummy ones. I didn't spot the error until I used the -warn all option to compile. Is this the expected behaviour?
Using Intel Fortran Compiler for Intel64, Version 15 on Linux CentOS 6
Thanks in advance,
NL
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The -warn all option generates interfaces and checks interfaces. The Fortran compiler cannot verify calling arguments for subroutines and functions that do not have/use interfaces. Subroutines and functions contained in modules have interfaces by default, Those non-module subroutines and functions do not have interfaces (though some checking could potentially be performed in the IPO phase).
Jim Dempsey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page