Re: Scope question (gfortran odd-man out)
- From: awgreynolds@xxxxxxxxxxxxx
- Date: Mon, 02 Jul 2007 15:35:44 -0700
Finally, here's the code that gfortran has problems with:
program main
call something
end
subroutine something
! integer i !correct results from gfortran depend on this statement
character lit*1,line*100
lit(i)=line(i:i)
i=1; n=5; line='PZ0R1'
if (internal(4)) stop
write(*,*) i
contains
logical function internal(j)
intent(in) j
do i=j,n
k=index('RE',lit(i)); if (k==0) cycle
if (i+1==n) exit
enddo
internal=k==0
end function
end
.
- Follow-Ups:
- Re: Scope question (gfortran odd-man out)
- From: paul . richard . thomas
- Re: Scope question (gfortran odd-man out)
- From: glen herrmannsfeldt
- Re: Scope question (gfortran odd-man out)
- From: Steven G. Kargl
- Re: Scope question (gfortran odd-man out)
- From: Paul van Delst
- Re: Scope question (gfortran odd-man out)
- References:
- Scope question (gfortran odd-man out)
- From: awgreynolds
- Re: Scope question (gfortran odd-man out)
- From: Steven G. Kargl
- Re: Scope question (gfortran odd-man out)
- From: awgreynolds
- Re: Scope question (gfortran odd-man out)
- From: glen herrmannsfeldt
- Scope question (gfortran odd-man out)
- Prev by Date: Re: Need Help: compiling old Fortran program
- Next by Date: Re: Please help me understand my code
- Previous by thread: Re: Scope question (gfortran odd-man out)
- Next by thread: Re: Scope question (gfortran odd-man out)
- Index(es):
Relevant Pages
|