This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38945] No warning when using uninitialized variable
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2009 16:05:13 -0000
- Subject: [Bug c/38945] No warning when using uninitialized variable
- References: <bug-38945-11352@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from manu at gcc dot gnu dot org 2009-01-24 16:05 -------
I am almost sure that this is CCP again assuming that the undefined value is
the same as the constant assigned, hence x++ is converted to 0++. This can be
checked using -fdump-tree-all-all-lineno.
If so, a duplicate of bug 18501.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
OtherBugsDependingO| |24639
nThis| |
Summary|No warning when using unset |No warning when using
|variable |uninitialized variable
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38945