[Bug middle-end/50966] [4.4/4.5/4.6/4.7 Regression] Missing 'is used uninitialized' warning (struct pointer dereference)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 2 21:01:00 GMT 2011


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-11-02
     Ever Confirmed|0                           |1

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-11-02 21:00:53 UTC ---
There is no dereference of bar in the testcase.  What is there is an
address computation based on bar, that should certainly be warned on.
And I do see that warning with trunk (but not with 4.5 or 4.6, I suppose
my uninit TLC patch somehow fixed this):

$ ./cc1 -quiet t.c -Wall
t.c: In function 'main':
t.c:10:20: warning: 'bar' is used uninitialized in this function
[-Wuninitialized]

so, what is your real issue?



More information about the Gcc-bugs mailing list