[Bug c/54554] Undetected use of uninitialized variable
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 12 09:47:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54554
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-09-12
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-12 09:47:16 UTC ---
By means of the assignment i becomes an induction variable and at -O0 we do
not warn for "maybe used uninitialized". With optimization the use is
constant-propagated out.
Thus, this is a known issue, not really the same as PR52523
More information about the Gcc-bugs
mailing list