Re: Recursion



"David Flower" <DavJFlower@xxxxxxx> wrote:

>Calling sub-programs recursively is prohibited by the F77 standard, but
>allowed by the F90 standard.
>
>I have tested Salford FTN77, and it will not compile a FUNCTION that
>invokes itself directly, but indirect recursion works.
>
>So can someone tell me which F77 compilers de facto allow indirect
>recursion ?

Is the question meant to gather information about compilers or
to solve a programming problem?

If the former, I can offer no advice.

If the latter, recall that any F95 compiler is in essence an F77
compiler with extensions, as any valid F77 code should compile
correctly. Thus, to add recursion to an F77 program, use an F95
compiler.


--
Mike Prager, NOAA, Beaufort, NC
Address spam-trapped; remove color to reply.
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
.



Relevant Pages

  • Re: Intel Fortran 9.0 and 9.1 using VS 2005
    ... Mainly because we never found a bug in over 20 years of use of MS F77 ... In fact any mix of MSDOS and command-line wersions would run ... He also migrated with the compiler owership. ... Intel is like Fort Knox. ...
    (comp.lang.fortran)
  • Re: Vexing problems arising from mixing F9x and F77 code
    ... Similar problems can occur when calling older F77 routines from F9x callers. ... Compiling the main and the subroutine using the same compiler works: ... TST> g95 iotest.f90 f77sub.f ... If you are not amused yet, try using f95 instead of g95, but still use ...
    (comp.lang.fortran)
  • Re: g77 compliance?
    ... G77 complies with the Fortran 77 standard ... a compiler noncompliant with the standard. ... F95 is a superset of f77. ... > stores them in arrays of pointers to arrays). ...
    (comp.lang.fortran)
  • Re: Suspicious Gfortran
    ... A perfect program can be considered as a contradiction in ... among array bounds errors that f77 had let go through (they did not affect ... gfortran 4.2: endless loop. ... to be "adapted" to a new compiler the bugged state of which is unknown. ...
    (comp.lang.fortran)
  • Re: end-of-file during read using unformatted reading
    ... what is 'our F77' and why would anyone else care for advice ... particular compiler to correctly implement standard Fortran is only useful ... you offer it as advice to newcomers to the language. ...
    (comp.lang.fortran)