[llvm-bugs] [Bug 50067] New: Missing -Wuninitialized for copying structures in C++ mode
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 21 11:07:11 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: david.bolvansky at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210421/f8193346/attachment.html>
More information about the llvm-bugs
mailing list