[Bug middle-end/40943] [4.4/4.5 Regression] Uninitialized warning is missed when dereferencing uninitialized pointers

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 3 13:41:00 GMT 2009



------- Comment #3 from jakub at gcc dot gnu dot org  2009-08-03 13:41 -------
Created an attachment (id=18289)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18289&action=view)
gcc45-pr40943.patch

Untested fix.  It breaks uninit-6*.c again though, but "fixing" this kind of
false positive by simply disabling uninitialized warnings for all pointer
dereferences on LHS is IMHO too big hammer.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40943



More information about the Gcc-bugs mailing list