------- Comment #2 from dfranke at gcc dot gnu dot org  2009-12-05 00:31 -------
I'd vote for valid (moving the definition of the return type into the
specification part already is accepted).


F95, 5.1 Type declaration statements
"The specification-expr (7.1.6.2) of a char-len-param-value (5.1.1.5) or
an array-spec (5.1.2.4) may be a nonconstant expression provided the
specification expression is [...] the type-spec of a FUNCTION statement
(12.5.2.2)."

"If a length-selector (5.1.1.5) is a nonconstant expression, the length is
declared at the entry of the procedure and is not affected by any
redefinition or undefinition of the variables in the
specification expression during execution of the procedure."


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41370

Reply via email to