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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs