struct A {
    A(int v) : v_(v_) { }
               ^^^^^^ I would love to see a warning here.
    int v_;
};


-- 
           Summary: missed diagnostic about initialization with an
                    uninitialized variable.
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net


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

Reply via email to