Re: Was this a bug
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Sep 2006 04:38:15 -0700
David Flower wrote:
(snip)
Nobody seems to have picked up on my comment that m surprise was at the
program working correctly - not at it going wrong!
I noticed, but I didn't believe it. How do you know it worked
correctly? That is, that you didn't store in memory somewhere
outside the array that you were trying to store in?
Print out the appropriate values before and after the
call, in main and in the subroutine.
If you compiler has LOC, print out LOC(IARRAY) and
LOC(IARRAY(7)) before and after the CALL, and before
and after the reallocation.
This almost requires something like the ALGOL call by name, which
would be very unusual if it was even legal for Fortran.
-- glen
.
- References:
- Re: Was this a bug
- From: David Flower
- Re: Was this a bug
- Prev by Date: Re: Stack size, and warnings
- Next by Date: RE: Data files format
- Previous by thread: Re: Was this a bug
- Next by thread: Re: Was this a bug
- Index(es):
Relevant Pages
|