|
|
| Bugzilla Link |
8915 |
| Resolution |
FIXED |
| Resolved on |
Jan 27, 2011 08:12 |
| Version |
unspecified |
| OS |
Linux |
| Reporter |
LLVM Bugzilla Contributor |
| CC |
@DougGregor |
Extended Description
The following test (from the g++ test suite) causes a clang assertion to trigger.
template struct A {
struct B {
struct C {};
};
};
template void foo() {
class A::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.