This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42905] G++ 4.5.0 doesn't warn about an uninitialized class member
- From: "d dot g dot gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2010 03:08:28 -0000
- Subject: [Bug middle-end/42905] G++ 4.5.0 doesn't warn about an uninitialized class member
- References: <bug-42905-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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