This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: RFA: Revamp fortran array types
On Wed, Aug 19, 2009 at 06:06:33PM +0100, N.M. Maclaren wrote:
> On Aug 19 2009, Steve Kargl wrote:
> >On Wed, Aug 19, 2009 at 06:43:13PM +0200, Toon Moene wrote:
> >>
> >>The following code is perfectly OK:
> >>
> >> DIMENSION A(10)
> >> A = 10.0
> >> CALL SUB(A,A)
> >> END
> >> SUBROUTINE SUB(A,B)
> >> REAL, INTENT(IN) :: A(:), B(:)
> >
> >What happens if you replace the last line with
> >
> > REAL, INTENT(IN) :: A(:)
> > REAL, INTENT(OUT) :: B(:)
>
> No change. Not allowed.
Yes, I know.
--
Steve