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

Reply via email to