[Bug c++/55318] New: Missing uninitialized warning
brunonery+bugzilla at brunonery dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 14 02:39:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55318
Bug #: 55318
Summary: Missing uninitialized warning
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: brunonery+bugzilla@brunonery.com
The following piece of code:
=== snip ===
#include <iostream>
struct warnme
{
bool member_;
warnme(bool member) : member_(member_) {}
};
int main()
{
warnme wm(true);
std::cout << wm.member_ << std::endl;
return 0;
}
=== end snip ===
when compiled with g++ 4.7, gives me no warnings - even with
-Wuninitialized (clang++ 3.1 works fine).
More information about the Gcc-bugs
mailing list