[llvm-bugs] [Bug 27129] New: Template alias crashes template diffing

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 30 03:28:34 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org,
                    rtrieu at google.com
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160330/7e835138/attachment-0001.html>


More information about the llvm-bugs mailing list