public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2972: [2003-03-05] [diagnostic] -Wuninitialized could warn about uninitialized member variable usage in constructors
@ 2003-05-05  1:45 giovannibajo
  0 siblings, 0 replies; only message in thread
From: giovannibajo @ 2003-05-05  1:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, giovannibajo, nobody, pere

Old Synopsis: [2003-01-02]-Wuninitialized doesn't warn about uninitialized member variable usage
New Synopsis: [2003-03-05] [diagnostic] -Wuninitialized could warn about uninitialized member variable usage in constructors

State-Changed-From-To: suspended->analyzed
State-Changed-By: bajo
State-Changed-When: Mon May  5 01:45:55 2003
State-Changed-Why:
    As far as I can see, this PR is not waiting for the 
    resolution of any issue, so its state should be "analyzed".
    
    What Nathan is suggesting is to add a warning for this:
    --------------------------
    struct A
    {
        int f,g;
    
        A()
        {
            f = g;
        }
    };
    --------------------------
    
    -Wuninitialized could detect the use of g before
    initialization within the constructor.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2972


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-05  1:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-05  1:45 c++/2972: [2003-03-05] [diagnostic] -Wuninitialized could warn about uninitialized member variable usage in constructors giovannibajo

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