Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29343 Discussions

Huge program, need to force declarations

grg99
Beginner
530 Views
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




0 Kudos
1 Reply
Steven_L_Intel1
Employee
530 Views

If you're using Intel Fortran, yes.

/gen-interface /warn:interface

0 Kudos
Reply