public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51533] New: initialization with uninitialized member should warn
@ 2011-12-13 19:23 tutufan at gmail dot com
  2011-12-13 19:31 ` [Bug c++/51533] " marc.glisse at normalesup dot org
  2011-12-13 19:56 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: tutufan at gmail dot com @ 2011-12-13 19:23 UTC (permalink / raw)
  To: gcc-bugs

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;
}


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

end of thread, other threads:[~2011-12-13 19:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 19:23 [Bug c++/51533] New: initialization with uninitialized member should warn tutufan at gmail dot com
2011-12-13 19:31 ` [Bug c++/51533] " marc.glisse at normalesup dot org
2011-12-13 19:56 ` redi at gcc dot gnu.org

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