[llvm-bugs] [Bug 31514] New: Segfault when evaluating alias template in class template specialization.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 3 00:48:15 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31514
Bug ID: 31514
Summary: Segfault when evaluating alias template in class
template specialization.
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Reproducer:
// clang++ -std=c++11 test.cpp
template <class T, class>
using EnableTupleSize = T;
template <class T> struct tuple_size;
template <class T>
struct tuple_size<EnableTupleSize<const T, decltype(tuple_size<T>::value)>> {};
template <class T>
struct tuple_size<EnableTupleSize<volatile T, decltype(tuple_size<T>::value)>>
{};
struct Tuple;
template <> struct tuple_size<Tuple> { enum { value = 1 };};
int main()
{
tuple_size<const Tuple> t;
}
--
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/20170103/4221327a/attachment-0001.html>
More information about the llvm-bugs
mailing list