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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs