https://bugs.llvm.org/show_bug.cgi?id=50067
Bug ID: 50067
Summary: Missing -Wuninitialized for copying structures in C++
mode
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangb...@nondot.org
Reporter: david.bolvan...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
struct S {
int i;
};
void test() {
struct S s;
struct S t;
s = t;
}
void test2() {
struct S s;
struct S t;
s = s;
}
class A {
int i;
};
void test3() {
A s;
A t;
s = t;
}
void test4() {
class B {
int i;
};
B s;
B t;
s = t;
}
https://godbolt.org/z/ob19oYzoj
Maybe due RecordDecl vs CXXRecordDecl somewhere? Any hints where to look?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs