This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42724] New: Trivial uninitialized variable not spotted
- From: "roche+gccbugs at exalead dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2010 13:13:01 -0000
- Subject: [Bug c/42724] New: Trivial uninitialized variable not spotted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Possibly related to BUG 39799
The attached very simple test case does not produce any warning on build, using
'-W -Wall -Wextra -O3 -Wuninitialized -Werror'.
If the condition is not seen as false at build time, the compiler does not
complaint.
--
Summary: Trivial uninitialized variable not spotted
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: roche+gccbugs at exalead dot com
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42724