[Bug middle-end/50950] warning missed when OR'ing to an uninitialized variable
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 2 09:48:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50950
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-11-02 09:48:16 UTC ---
No, it's the lame warning-for-uninitialized-memory (your variables are
address-taken) code that triggered in 4.4 but not in newer releases.
Thus it's more related to PR50040.
Note that I don't think we should warn for bitwise OR with 1 (but we should for
bitwise AND), the testcase will simply make one bit initialized, not
using any uninitialized info. Thus not warning for this particular case is
good.
More information about the Gcc-bugs
mailing list