Editorial question61.7K views2,629 votes0 answers1,560 following
AI-generatedFortran 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