CompuServe Messages

#FOR…BY -1 bug

    28-May-89 21:27:55
Fm: bob hawkins 70345,425
To: bob hawkins 70345,425
And this: I have been encountering major weirdness in the behavior of your compiler. For example, the following line is from a program that compiles and runs under M2Amiga (all variables are REAL): Sum := Sum + R[i,j]*B[j]; Under M2Sprint 1.0, the program crashes when it reaches this point. The M2Debug that I DL'd from here claims the error occurred in some random line of another procedure that has already executed correctly. The line executes once (with i=3, j=4) and bombs the second time through the loop (with i=2, j=3). If I change the line to: Sum := Sum + B[j]*R[i,j]; the program executes and produces correct numbers. Naturally, this behavior does not show up in a short test program, but only in the real program. This is not by any means the only problem; it's the only one reproducible enough for me to be able to describe it.