Standard: F77 F90 F95 F2003 F2008 F2018 Example program


MODULE PROCEDURE name [ , name ]...
PROCEDURE name [ , name ]...

The MODULE PROCEDURE statement is only allowed inside a generic INTERFACE block.

In Fortran 2008, the mp-subprogram-stmt has identical syntax to a MODULE PROCEDURE statement declaring a single procedure, but appears only as the first statement of a separate module subprogram.


The MODULE PROCEDURE statement specifies that the listed module procedures are to be included in the generic interface.

In Fortran 2003, the MODULE keyword may be omitted; when it is omitted, the list of names may include external procedures, dummy procedures and procedure pointers (provided they already have an explicit interface given elsewhere).


END INTERFACE statement, INTERFACE statement, INTERFACE ASSIGNMENT statement, INTERFACE OPERATOR statement, MODULE statement, Separate module procedures