Scope of implicit none
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: Sun, 21 Sep 2008 23:52:36 -0700 (PDT)
Hello,
I have a question about the scope (if that is the proper name) of an
IMPLICIT NONE.
The following program causes an error message with gfortran, but not
with g95 or ifort:
! impnone.f90 --
! Check the scope of implicit none
!
module x
implicit none
contains
subroutine integrate( f, x1, x2, value )
real :: x1, x2, value
interface
function f(x)
real :: x
end function f
end interface
! Do something useful
end subroutine
end module x
The error message with gfortran is that the function f has no IMPLICIT
type.
That seems to indicate that the IMPLICIT NONE statement is active in
for the
interface block too. As the other two compilers do not complain about
it, I
assume that they do not let this IMPLICIT NONE statement make itself
felt
inside an interface block.
Which is the right interpretation? (If there is a right
interpretation)
Regards,
Arjen
.
- Follow-Ups:
- Re: Scope of implicit none
- From: Cirilo S. Bresolin
- Re: Scope of implicit none
- From: Richard Maine
- Re: Scope of implicit none
- Prev by Date: Re: Surprise
- Next by Date: Re: Scope of implicit none
- Previous by thread: BLOCK WAS VECTORIZED.
- Next by thread: Re: Scope of implicit none
- Index(es):
Relevant Pages
|
|