RECURSIVE vs PURE and ELEMENTAL

Jerry DeLisle jvdelisle@verizon.net
Sat Aug 4 19:10:00 GMT 2007


Walter Spector wrote:
> 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.
> 
Walter, I had not heard the cygwin gfortran binary on the wiki was broken.  I 
will try to check on it later today.  I also need to build a new one.

Regards,

Jerry



More information about the Fortran mailing list