RESULT clause
Standard: F77 F90 F95 F2003
  Example Program
RESULT ( name )

The RESULT clause may only appear in the suffix of a FUNCTION or ENTRY statement.
The RESULT clause specifies the name of the function result variable. If it is omitted, the result variable name is the same as the function name.

Note that it is the result name that must appear in any specification statements within the function, not the name of the function itself (unless they are the same).
ENTRY statement, FUNCTION statement