This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/19430] Missing uninitialized warning
- From: "ciaccio at disi dot unige dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 15:25:24 -0000
- Subject: [Bug middle-end/19430] Missing uninitialized warning
- References: <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from ciaccio at disi dot unige dot it 2006-03-10 15:25 -------
An even simpler test case of this bug (tested with gcc 3.4.5):
int main( void ) {
int rc;
return rc;
*&rc = 0;
}
> gcc -O -Wall program.c
(more stunning silence)
NOTE: in this example, there is no function invocation inside main().
NOTE: remove the last statement in the program, and the warning will show up.
g.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19430