|
From: Scott L. <sc...@sw...> - 2005-10-17 19:33:47
|
Valgrind 3.0.1 erroneously reports an error ("Conditional jump or move
depends on uninitialised value(s)") on the if-statements of both of the
following code snippets (compiled with GCC 3.2.3, no optimization):
int main()
{
int uninit;
int two = 2;
uninit *= two;
if(!(uninit & 1)) // there should be no error here
{
printf("Hello, world!\n");
}
return 0;
}
-----
int main()
{
int uninit;
uninit ^= uninit;
if(!(uninit & 1)) // there should be no error here
{
printf("Hello, world!\n");
}
return 0;
}
Scott
|