gcc-3.2.3 does not issue warnings on "int a = a + 1"

Remo Inverardi invi@your.toilet.ch
Tue Apr 29 16:26:00 GMT 2003


g++-3.2.3 on Debian SID does not issue warning when compiling the 
following code:

void foo()
{
   int xyz = xyz + 1;
}

The variable xyz is not defined at global scope, so a warning like 
"accessing uninitialized variable" would be appropriate.

Regards, Remo



More information about the Gcc-bugs mailing list