[LLVMbugs] [Bug 16355] New: Missing -Wuninitialized warning in superclass initialization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 17 16:48:19 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16355

            Bug ID: 16355
           Summary: Missing -Wuninitialized warning in superclass
                    initialization
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

struct Foo {
  Foo() { x_ = 5; }
  Foo(const Foo&) { x_ = 5; }
  int x_;
};

class Super {
 public:
  Super(int i) : i_(i) {}
 private:
  int i_;
};

class Sub : public Super {
 public:
  Sub() : Super(f_.x_) {}  // Should warn here
 private:
  Foo f_;
};

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130617/95f3fd9b/attachment.html>


More information about the llvm-bugs mailing list