This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29837] INTERFACE overloading INTENT problem - valid code is rejected
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2006 00:18:14 -0000
- Subject: [Bug fortran/29837] INTERFACE overloading INTENT problem - valid code is rejected
- References: <bug-29837-7816@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from kargl at gcc dot gnu dot org 2006-11-15 00:18 -------
The trivial workaround is to assign MAXVAL(X) to an integer.
SUBROUTINE T(X)
INTEGER, INTENT(IN) :: X(:)
INTEGER Y, Z
z = maxval(x)
CALL A(z,Y)
END SUBROUTINE T
I need to look at the standard with regards to conformance issues.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29837