NON_RECURSIVE attribute

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

NON_RECURSIVE

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

<Semantics>

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.

<Related>

ENTRY statement, FUNCTION statement, RECURSIVE attribute, SUBROUTINE statement