danny@convext.UUCP (03/29/87)
The following code will crash Manx 3.40a giving compiler errors 202 and 203.
This code compiles without error on Manx 3.20a.
I found a patch on a local bulliten board (AmigaSCOPE) and ran it on my compiler
but the bug still exists. The patch was from Manx and said something about bugs
with VT100 2.6
I would appreciate if somebody would cross-post this to BIX or someplace where
Jim Goodnow (sp?) will see it.
NOTE: the variables are long's. The program works when the variables are int's.
Also note, if x[i][j] = x[i][(j + 4) % 5] + dx[i]; is replaced with
{ t=x[i][(j + 4)]; x[i][j]=t; } where t is a long then the code will not
generate compiler errors.
Dan Wallach
...!ihnp4!convex!danny
-_- _-_ cut -_- _-_ cut -_- _-_ cut -_- _-_ cut -_- _-_ cut -_- _-_ cut -_- _-_
/* This will generate Manx Compiler Errors #202 and #203 */
main ()
{
long x[5][5], /* <==== notice the long - this code works with int's */
dx[5],
i,
j;
for (i = 0; i < 5; i++)
for (j = 0; j < 5; j++)
x[i][j] = x[i][(j + 4) % 5] + dx[i];
}