https://llvm.org/bugs/show_bug.cgi?id=27129
Bug ID: 27129
Summary: Template alias crashes template diffing
Product: clang
Version: trunk
Hardware: PC
OS: Linux
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
$ cat crash.cc
template <typename T>
class vector {};
template <int Dimension>
class Point;
template <int dimension, typename T>
using Polygon = vector<Point<dimension>>;
void foo(Polygon<3, float>);
void bar() { foo(Polygon<2, float>()); }
$ clang crash.cc -std=c++11
crash.cc:10:14: error: no matching function for call to 'foo'
void bar() { foo(Polygon<2, float>()); }
^~~
unknown ArgumentKind
UNREACHABLE executed at llvm/tools/clang/lib/AST/ASTDiagnostic.cpp:1169!
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs