[llvm-bugs] [Bug 39813] New: incorrectly-ordered designated initializers crashes thread-safety analysis
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 27 15:56:42 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39813
Bug ID: 39813
Summary: incorrectly-ordered designated initializers crashes
thread-safety analysis
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Testcase:
struct S {
S();
S(const S&);
~S();
};
struct EF { S s; };
struct PN { PN(const PN&); };
extern PN pn;
struct FLN {
EF ef;
int it;
PN pn;
};
void f() {
FLN new_elem = {
.ef = EF(),
.pn = pn,
.it = 0,
};
}
This causes -Wthread-safety-analysis to crash when analyzing 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/20181127/7d07d8a1/attachment.html>
More information about the llvm-bugs
mailing list