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: unassig...@gcc.gnu.org
ReportedBy: brunonery+bugzi...@brunonery.com
The following piece of code:
=== snip ===
#include
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).