http://llvm.org/bugs/show_bug.cgi?id=15513

            Bug ID: 15513
           Summary: Assertion failure in template diffing code.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

This little beast crashes clang:

template <int x, int y = x+1>
class A {};

void foo(A<0> &M) {
  A<0, 0> N = M;
}

$ clang++ t.cc
Assertion failed: (0 && "Template arguments must be known at compile time."),
function IsEqualExpr, file llvm/tools/clang/lib/AST/ASTDiagnostic.cpp, line
1096.

-- 
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