On Wed, 23 Sep 1998, Olaf Michelsson wrote:
<SNIPPED>
> Look carefully to the declaration here:
>
> the input has the intent(in) status
>
> >r = proc(12)
> >end subroutine subr1
> >
> >subroutine subr2(proc)
> >interface
> > function proc(realarg)
> > real :: proc
> > real, intent(in) :: realarg
> > end function proc
> >end interface
>
> here the same
>
> >r = proc(14.0)
> >end subroutine subr2
> >
> >end module trygen
> >
> >program try_gen
> >
> > use trygen
> > interface
> > integer function fi(i)
> > integer :: i
> > end function fi
> > real function fr(r)
> > real :: r
> > end function fr
> > end interface
>
>
> but here you do not declare the input -intent
> and therefore the compiler complains about different type
Though this is certainly a correct statement it doesn't help
on DEC's f90 compiler (on an alpha). It still complains about
ambiguous arguments.
Cheers,
WWS
-----------------------------------------------------------------------
| Werner W Schulz |
| Dept of Chemistry email: [log in to unmask] |
| University of Cambridge Phone: (+44) (0)1223 336 502 |
| Lensfield Road Secretary: 1223 336 338 |
| Cambridge CB2 1EW Fax: 1223 336 536 |
| United Kingdom WWW: |
-----------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|