Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29294 Discussions

Huge program, need to force declarations

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

If you're using Intel Fortran, yes.

/gen-interface /warn:interface

0 Kudos
Reply