rare bug
Tommy Faasen
tommy@roboken.esys.tsukuba.ac.jp
Sun Oct 17 17:48:00 GMT 1999
Hi i was compiling the other day with no problems at all on any machine
until i tried it on my Laptop 486 sx /33. It compiles ok but when i try
to run it it will gave a page fault.. unable to page virtual adress .
I tracked it down to this routine
double output[100];
foo()
{
int i;
for(i=0;0<100;i++)
{
output[i]=sin(i);
}
}
it doesn't like the assignment. for example the following will work
double output[100];
foo()
{
int i,t;
for(i=0;0<100;i++)
{
t=sin(i);
}
}
but the next will not work
double output[100];
foo()
{
int i;
for(i=0;0<100;i++)
{
t=sin(i);
output[i]=t;
}
}
happy bug hunting!
o i use a slackware 4.0 system
Cya!
tommy
I have no problems on running my program on pentium or sparc machines.
More information about the Gcc-bugs
mailing list