Compiler warning flags: Implicit interfaces

Hi,

I am analysing some code and trying to determine whether any calls are made to procedures without explicit interfaces. Are there any compiler flags that will enable warnings for calls that need explicit interfaces?
I have found that the intel and gnu fortran compilers use flags such as:

Intel: -warn interface



gfortran: -Wimplicit-interface

Is there any equivalent for the PGI fortran compiler?


To my understanding it is best practice to use explicit interfaces (or modules) for all procedures. I am curious as to how much compiler checking is done for procedures using implicit interfaces (with regard to argument number, order, type and rank).

Thanks!

Hi aring,

Are there any compiler flags that will enable warnings for calls that need explicit interfaces?

No, sorry. PGI doesn’t have an equivalent flag for this warning.

I am curious as to how much compiler checking is done for procedures using implicit interfaces (with regard to argument number, order, type and rank).

If you have an interface, explicit or implicit, then the type, rank, kind, etc. of the arguments is checked. Without an interface, F77 style calling conventions are used and no checking is done.

  • Mat