[LLVMbugs] [Bug 7901] New: clang c++ crash with template instantiated with locally-declared extern variable
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 14 17:39:38 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7901
Summary: clang c++ crash with template instantiated with
locally-declared extern variable
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Testcase:
template <int*> struct A { A(); };
void foo() {
extern int i01;
A<&i01> a01;
}
Crashes with:
clang: SemaTemplateInstantiate.cpp:1654: clang::Decl*
clang::Sema::LocalInstantiationScope::getInstantiationOf(const clang::Decl*):
Assertion `D->isInvalidDecl() && "declaration was not instantiated in this
scope!"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list