Has anyone had this problem with the gfortran compiler
call rr(1,1)
end
recursive subroutine rr(j,k)
if(j>3) then
print*,k
else
k=k*j
call rr(j+1,k)
endif
end
Clearly everything is well defined and should not be getting any run time errors such as 'segmentation... invalid memory..'
which it is giving !
call rr(1,1)
end
recursive subroutine rr(j,k)
if(j>3) then
print*,k
else
k=k*j
call rr(j+1,k)
endif
end
Clearly everything is well defined and should not be getting any run time errors such as 'segmentation... invalid memory..'
which it is giving !