[LLVMbugs] [Bug 16989] New: crash on invalid in end-of-tu instantiation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 24 14:53:37 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: nlewycky at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130824/c85121d9/attachment.html>
More information about the llvm-bugs
mailing list