http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18016
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-12-21 15:28:18 UTC --- With the patch at http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01622.html the testcase above gives: $ g++4x a.cc -c -Wuninitialized a.cc: In constructor ‘A::A()’: a.cc:4:5: warning: ‘A::a’ is initialized with itself [-Wuninitialized] a.cc: In member function ‘int A::getA()’: a.cc:9:10: warning: ‘b’ is used uninitialized in this function [-Wuninitialized]