This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about the compiler


On Nov 3, 2005, at 9:43 AM, Steve Kargl wrote:

I've answered this already (perhaps, in private email).
The code declares pb(3) and the do loop index goes from
1 to 4.  Thus, the OP assigns pb(4) = 0.0 in the loop,
which steps beyond on the end of the array.  In this
instance, ndim appears to occupy the memory that gets
stomped.

Jeez! I feel like an idiot for missing that obvious one, while looking at more obscure possibilities. Maybe I can plead that I'm not fully recovered from the cold that had me home the last several days; my brain isn't yet warmed up. :-(


--
Richard Maine                |  Good judgment comes from experience;
Richard.Maine@nasa.gov       |  experience comes from bad judgment.
                            |        -- Mark Twain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]