Pelles C forum

Pelles C => Bug reports => Topic started by: PauloH on May 20, 2009, 04:41:04 AM

Title: Fatal error into while loop
Post by: PauloH on May 20, 2009, 04:41:04 AM
Hello,

I was coding this program to tell about loops on C and the compiler emitted this fatal error:
--> fatal error: Internal error: 'Access violation' at 0x00408325.

#include <stdio.h>

int main (void)
{
int i;

for (i = 0; i < 10000; i++)
{
if (i % 200 == 0)
{
printf("%d eh multiplo de 200\n", i);
break;
}
}

i = 1;

while (i < 10000)
{
if (i % 200 == 0)
{
printf("%d eh multiplo de 200\n", i);
break;
}

//i++;  ----> The problem is here. Without the comment the compilation goes without error.
}

return 0;
}



I'm using the last Version 6.00 RC1. LCC-Win32 compiles it without errors.
Attached are the zipped project and a image an image with the error.
Title: Re: Fatal error into while loop
Post by: Pelle on May 20, 2009, 07:42:20 PM
OK, I can reproduce it.