[Bug fortran/33231] Reject for -std=f* calls to elementar functions where array and scalar are mixed

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 13 13:36:00 GMT 2007



------- Comment #1 from burnus at gcc dot gnu dot org  2007-09-13 13:36 -------
"12.7.3 Elemental subroutine actual arguments"
"An elemental subroutine is one that has only scalar dummy arguments, but may
have array actual arguments. In a reference to an elemental subroutine, either
all actual arguments shall be scalar, or all actual arguments associated with
INTENT (OUT) and INTENT (INOUT) dummy arguments shall be arrays of the same
shape and the remaining actual arguments shall be conformable with them. In the
case that the actual arguments associated with INTENT (OUT) and INTENT (INOUT)
dummy arguments are arrays, the values of the elements, if any, of the results
are the same as would be obtained if the subroutine had been applied
separately, in any order, to corresponding elements of each array actual
argument."


-- 


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



More information about the Gcc-bugs mailing list