[LLVMbugs] [Bug 17644] New: assert `!SpecializedTemplate.is<SpecializedPartialSpecialization*>() && "Already set to a class template partial specialization!"' failed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 21 16:16:30 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17644
Bug ID: 17644
Summary: assert
`!SpecializedTemplate.is<SpecializedPartialSpecializat
ion*>() && "Already set to a class template partial
specialization!"' failed
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
template<int A, int B> struct S;
template<int A> struct S<A, 0>;
template<int B> struct S<0, B> {
S<1, 0> f() { return S<1, 0>(); }
};
asserts while parsing the body of 'f':
9 clang-3.4 0x00000000028816d3
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1843
10 clang-3.4 0x0000000002927dab
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1259
11 clang-3.4 0x0000000002927796
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 86
12 clang-3.4 0x00000000023d9c5a
13 clang-3.4 0x0000000002670b36
clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) + 934
14 clang-3.4 0x000000000267077b
clang::Sema::ActOnCXXTypeConstructExpr(clang::OpaquePtr<clang::QualType>,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) + 235
15 clang-3.4 0x000000000233a028
clang::Parser::ParseCXXTypeConstructExpression(clang::DeclSpec const&) + 1176
--
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/20131021/80ae9e96/attachment.html>
More information about the llvm-bugs
mailing list