Re: The root cause for SEGV in evaluating fortran function call, any solution or suggestion?

Daniel Jacobowitz
2005-11-07T00:02:36Z

On Wed, Nov 02, 2005 at 11:42:36PM -0800, Jim Blandy wrote:
> The types in the debug information should not reflect the extra level
> of indirection; the fact that they're passed by reference is just part
> of the meaning of a Fortran function call. But the location
> expression should encode the extra level of indirection.

This seems perfectly sensible to me. But the example Wu posted earlier
does not agree: today gfortran apparently puts out the indirections
explicitly.

Paul Brook had this to say when I asked him:
When a user says "p foo" they should get the value, not the address of
the argument.

So it sounds like gfortran will need to be fixed.

--
Daniel Jacobowitz
CodeSourcery, LLC