[llvm-bugs] [Bug 38888] New: ExprMutationAnalyzer crash with uninstanciated templates
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 10 07:08:59 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38888
Bug ID: 38888
Summary: ExprMutationAnalyzer crash with uninstanciated
templates
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: lebedev.ri at gmail.com
CC: llvm-bugs at lists.llvm.org
template <typename a> class b {
typedef a c;
c m_fn1() const noexcept;
};
template <typename a> typename b<a>::c b<a>::m_fn1() const noexcept {
c d;
for (; d > 0;)
;
}
So, i'm not quite sure how to write a test for this,
but if i call ExprMutationAnalyzer::findDeclMutation() with vardecl of "c d;",
with stmt (the scope) being either loop condition, loop increment, or loop body
(i'm not sure which one it is) there is a crash.
Sorry that i can't quite yet provide more actionable info.
--
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/20180910/6564f1f9/attachment.html>
More information about the llvm-bugs
mailing list