RECURSIVE vs PURE and ELEMENTAL
Walter Spector
w6ws@earthlink.net
Sat Aug 4 18:56:00 GMT 2007
Steve Kargl wrote:
> ...
> I guess I just don't understand what is failing for you.
A couple of things:
1a.) Try making both 'factorial' and 'factorial_inner' ELEMENTAL.
The first should be ok. The second should give an error at the
point where it calls itself. (Or at least a warning when -pedantic
is used.)
1b.) Try then making 'factorial_inner' PURE (but not RECURSIVE).
This should also give a message at the point where it calls itself.
2.) I tried upgrading my gfortran to the latest cygwin binary.
Unfortunately, it is now broken ("nothing happens" when I issue
the gfortran command. The driver just returns a exit code of 1.)
I need to do some errands, so will try to look at it some more
later today.
W.
More information about the Fortran
mailing list