Fortran 2018 RESULT statement followed by RETURN in internal functions: portable or unspecified?
Background I am reviewing a codebase that targets the Fortran 2018 standard and contains internal functions where a RESULT assignment is immediately followed by a RETURN statement. The standard defines how RESULT assigns the function value, but I cannot find wording that explicitly permits or forbids placing RETURN directly after it, which appears to leave t