mark@unisec.USI.COM (Mark Rinfret) (03/18/87)
I just discovered another bug in the Aztec C V3.40a compiler this morning.
The following small program illustrates the problem. I've forgotten/
misplaced Jim Goodnow's net address. If you know it, please forward this
to him.
/* Bug illustration for MANX Aztec C, V3.40a for Amiga.
* Mark Rinfret, 03/18/87
* The following code illustrates an error I discovered when using the
* above mentioned compiler. The compiler I am running has the patch
* supplied by Jim Goodnow to fix the 'op=' bug with arrays.
* The error generated is #202, "Attempt to free reg not allocated."
* The code itself is meaningless but is representative of the addressing
* constructs being used by the program that actually revealed the error.
*/
float ary[10][40];
main()
{
int i;
float xx = 2.0;
for (i = 0; i < 10; ++i) {
ary[i][1] = ary[i][1] + xx;
ary[i][2] = ary[i][2] + xx*xx;
++ary[i][3]; /* <== This causes error 202 */
}
}
--
| Mark R. Rinfret, SofTech, Inc. mark@unisec.usi.com |
| Guest of UniSecure Systems, Inc., Newport, RI |
| UUCP: {gatech|mirror|cbosgd|uiucdcs|ihnp4}!rayssd!unisec!mark |
| work: (401)-849-4174 home: (401)-846-7639 |