[Bug c++/55318] New: Missing uninitialized warning

2012-11-13 Thread brunonery+bugzilla at brunonery dot com


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).


[Bug c++/55318] Missing uninitialized warning

2012-11-14 Thread brunonery+bugzilla at brunonery dot com


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



--- Comment #2 from brunonery+bugzilla at brunonery dot com 2012-11-14 16:55:36 
UTC ---

Not -Winit-self alone, but together with -Wuninitialized.