http://llvm.org/bugs/show_bug.cgi?id=16989
Bug ID: 16989
Summary: crash on invalid in end-of-tu instantiation
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Testcase:
class C {
template <class T>
C tpl_mem(T *) {
return
}
void mem(int *p) {
tpl_mem(p);
}
};
class C2 {
void f();
};
void C2::f() {}
The crash is an assertion here:
#5 0x0000000001685c7a in clang::TemplateDeclInstantiator::SubstFunctionType (
this=0x7fffffffc070, D=0x5438270, Params=...)
at SemaTemplateInstantiateDecl.cpp:2676
2676 ThisContext = cast<CXXRecordDecl>(Owner);
(gdb) p Owner
$1 = (clang::DeclContext *) 0x54386b0
(gdb) call Owner->getDeclKindName()
$2 = 0x3b09977 "CXXMethod"
(gdb) call Owner->dumpDeclContext()
class C2;
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs