http://llvm.org/bugs/show_bug.cgi?id=19878
Bug ID: 19878
Summary: variadic template arguments deduction
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
This code is accepted by MSVC, but it is rejected by clang. Because clang can
not deduce template for T. I don't know which compiler is right, but behavior
of MSVC seems reasonable.
template<class ...T>
struct X
{};
template<class ...T>
void foo(X<T, T...>... a);
void test()
{
foo(X<int, int, double>(), X<double, int, double>());
}
--
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