Functions result assigned to an array subscript which is also an input parameter

Erik Edelmann erik.edelmann@iki.fi
Tue Apr 11 17:11:00 GMT 2006


On Tue, Apr 11, 2006 at 05:08:09PM +0200, Philippe Schaffnit wrote:
> 
> Hi!
> 
> I've just spotted a very different behaviour between GFortan and the
> Lahey compiler: the later gives the output I expect without any warning
> of any kind (with all checks enabled), whereas GFortran surprises me a
> bit...
> 
> I think this is a bug, as this only happens with array subscripts, but
> this is so twisted that it might actually be OK...
> 
> Can anyone comment on that?

As far as I can see, the result from lahey is correct, and
gfortran is wrong (ifort also agrees with lahey).  Can you file a
bug report in Bugzilla, please?


        Erik



More information about the Fortran mailing list