For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2008 > Re: Stack overflow problem but increasing stack size does not solve









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Stack overflow problem but increasing stack size does not solve
fj

2008-01-26, 8:17 am

On 26 jan, 12:43, fj <francois.j...@irsn.fr> wrote:
> On 26 jan, 08:55, nure...@gmail.com wrote:
>
>
>
>
>
>
>
>
>
> In this second version, there is nothing wrong. It should work with
> any stack size ... and any FORTRAN commpiler.
>
> Are you sure it does not work ?
>
> Of course, your first example was clearly wrong ... with any stack and
> any FORTRAN compiler. Full recursivity without stop test cannot work !


Just another comment about your first example : with an F90 compiler
it cannot even compile correctly, the compiler issuing a message like
"routine1 cannot call itself because it is not declared recursive"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com