I'm using a recursive function with compaq visual fortran 6.6. I've already used this feature in many programs, but now it seems to have some problem. While the computations at the lowest level seem to be correct, the final result is like out of flow.
VO( 1:M1)=funct(p1,VI( 1:N1),flag)+
! funct(p2,VI(N1+1:N2),flag)
VO(M1+1:M2)=funct(p3,VI( 1:N1),flag)+
! funct(p4,VI(N1+1:N2),flag)
funct is the recursive function
VO is the output vector (result)
Where could be the problem. Could this be a compiler bug?
VO( 1:M1)=funct(p1,VI( 1:N1),flag)+
! funct(p2,VI(N1+1:N2),flag)
VO(M1+1:M2)=funct(p3,VI( 1:N1),flag)+
! funct(p4,VI(N1+1:N2),flag)
funct is the recursive function
VO is the output vector (result)
Where could be the problem. Could this be a compiler bug?