[llvm-bugs] [Bug 30361] New: clang segfaults when compiling template member function that calls destructor
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 12 15:57:10 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30361
Bug ID: 30361
Summary: clang segfaults when compiling template member
function that calls destructor
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: ahatanak at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
$ cat test.cpp
template <typename T>
struct
C1
{
~C1() {}
void foo1();
};
template<typename T>
void C1<T>::foo1() {
C1::~C1();
}
void foo1() {
C1<int> x;
x.foo1();
}
$ clang++ -c test.cpp
Unable to find instantiation of declaration!
UNREACHABLE executed at
llvm/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:4897!
--
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/20160912/481efad8/attachment.html>
More information about the llvm-bugs
mailing list