This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51533] New: initialization with uninitialized member should warn
- From: "tutufan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Dec 2011 19:23:29 +0000
- Subject: [Bug c++/51533] New: initialization with uninitialized member should warn
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51533
Bug #: 51533
Summary: initialization with uninitialized member should warn
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tutufan@gmail.com
/* clang 3.1 (trunk 145840) warns
class-init-bug.cpp:4:13: warning: field is uninitialized when used here
[-Wuninitialized]
a() : c(c) { }
*/
class a {
a() : c(c) { }
int c;
};
int
main() {
return 0;
}