public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55318] New: Missing uninitialized warning
@ 2012-11-14  2:39 brunonery+bugzilla at brunonery dot com
  2012-11-14 11:41 ` [Bug c++/55318] " redi at gcc dot gnu.org
  2012-11-14 16:55 ` brunonery+bugzilla at brunonery dot com
  0 siblings, 2 replies; 3+ messages in thread
From: brunonery+bugzilla at brunonery dot com @ 2012-11-14  2:39 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/55318] Missing uninitialized warning
  2012-11-14  2:39 [Bug c++/55318] New: Missing uninitialized warning brunonery+bugzilla at brunonery dot com
@ 2012-11-14 11:41 ` redi at gcc dot gnu.org
  2012-11-14 16:55 ` brunonery+bugzilla at brunonery dot com
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-14 11:41 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-14 11:40:50 UTC ---
You need to use -Winit-self

For 4.8 this is included in -Wall

*** This bug has been marked as a duplicate of bug 18016 ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/55318] Missing uninitialized warning
  2012-11-14  2:39 [Bug c++/55318] New: Missing uninitialized warning brunonery+bugzilla at brunonery dot com
  2012-11-14 11:41 ` [Bug c++/55318] " redi at gcc dot gnu.org
@ 2012-11-14 16:55 ` brunonery+bugzilla at brunonery dot com
  1 sibling, 0 replies; 3+ messages in thread
From: brunonery+bugzilla at brunonery dot com @ 2012-11-14 16:55 UTC (permalink / raw)
  To: gcc-bugs


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-14 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-14  2:39 [Bug c++/55318] New: Missing uninitialized warning brunonery+bugzilla at brunonery dot com
2012-11-14 11:41 ` [Bug c++/55318] " redi at gcc dot gnu.org
2012-11-14 16:55 ` brunonery+bugzilla at brunonery dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).