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: unassignedclangb...@nondot.org Reporter: ahata...@gmail.com CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs