This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-3.2.3 does not issue warnings on "int a = a + 1"
- From: Remo Inverardi <invi at your dot toilet dot ch>
- To: bug-gcc at gnu dot org
- Date: Tue, 29 Apr 2003 16:17:42 +0200
- Subject: gcc-3.2.3 does not issue warnings on "int a = a + 1"
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