Bug#293957: gcc-3.3: No warning when initializing a variable with itself.
Package: gcc-3.3
Version: 1:3.3.5-5
Severity: minor
Consider the following C code:
-- stuffage.c: CUT HERE --
void stuffage() {
int foo = foo;
}
-- CUT HERE --
If you compile this as follows:
gcc stuffage.c -Wall -c
Then gcc will generate no output. This is a bug, because this program
actually uses the variable foo prior to its initialization.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages gcc-3.3 depends on:
ii binutils 2.15-5 The GNU assembler, linker and bina
ii cpp-3.3 1:3.3.5-5 The GNU C preprocessor
ii gcc-3.3-base 1:3.3.5-5 The GNU Compiler Collection (base
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.3-6 GCC support library
-- no debconf information
Reply to: