This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/42905] G++ 4.5.0 doesn't warn about an uninitialized class member



------- Comment #1 from d dot g dot gorbachev at gmail dot com  2010-01-30 03:08 -------
Created an attachment (id=19758)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19758&action=view)
Testcase

g++ -O -Wuninitialized -S 1.cc

Older g++s issue a warning:

pr42905.cc: In function â??void f()â??:
pr42905.cc:5: warning: â??s.S::iâ?? is used uninitialized in this function
pr42905.cc:11: note: â??s.S::iâ?? was declared here


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]