[LLVMbugs] [Bug 15513] New: Assertion failure in template diffing code.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 14 10:58:50 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: benny.kra at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
rtrieu at google.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130314/0469c503/attachment.html>
More information about the llvm-bugs
mailing list