#include <stdio.h>
int main (void)
{
float percent;
int heel;
char teken;
percent =5;
teken = 0;
heel=percent + teken;
heel=teken * heel ;
printf("%d\n",heel); // should result in 0 * 5 = 0 ???
teken =1;
heel=percent + teken;
heel=teken * heel ;
printf("%d\n",heel); // should result in 1 * 6 = 6 ???
return (0);
}
Just simplified the code to make it clear... Choosing "debug build" or "no optimation" gives the right results. Using speed optimation in release build gives wrong results.
Not tested in version 6 yet.
Am I doing something wrong or is it an optimizer bug?