- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI, I have this relatively huge program, about 40,000 lines in 183 source files.
I've found lots of errors in the source code caused by arguments that don't match the subroutine dummy argument type.
But the compiler doent find many of these by itself, as none of the subroutines had interfaces (to start out with). I'm building up interfaces as I go along, but the task is error-prone-- if I forget to add "use glue" to a subroutine, it will silently compile anyway and generate bad calls.
It sure would be nice if the compiler required interfaces for every called function or subroutine.
Is there some fortran option to require these?
Thanks,
grg
I've found lots of errors in the source code caused by arguments that don't match the subroutine dummy argument type.
But the compiler doent find many of these by itself, as none of the subroutines had interfaces (to start out with). I'm building up interfaces as I go along, but the task is error-prone-- if I forget to add "use glue" to a subroutine, it will silently compile anyway and generate bad calls.
It sure would be nice if the compiler required interfaces for every called function or subroutine.
Is there some fortran option to require these?
Thanks,
grg
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're using Intel Fortran, yes.
/gen-interface /warn:interface

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