Standard: F77 F90 F95 F2003 F2008 F2018 Example program



The NON_RECURSIVE keyword may appear only in the prefix of a FUNCTION or SUBROUTINE statement.


The NON_RECURSIVE keyword specifies that all procedures defined by this subprogram are not called recursively. (A subprogram can define several procedures by using the ENTRY statement.)

This was the default prior to Fortran 2018, and remains the default for CHARACTER(*) functions.


ENTRY statement, FUNCTION statement, RECURSIVE attribute, SUBROUTINE statement