[LLVMbugs] [Bug 8915] New: Assertion failure when instantiating member class of class template.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 5 09:26:45 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8915
Summary: Assertion failure when instantiating member class of
class template.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: zaffanella at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following test (from the g++ test suite) causes a clang assertion to
trigger.
template<int> struct A {
struct B {
struct C {};
};
};
template<int N> void foo() {
class A<N>::B::C X;
}
void bar() {
foo<0>();
}
clang: include/clang/AST/DeclTemplate.h:1283: void
clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
Assertion `Loc.isValid() && "point of instantiation must be valid!"' 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