[LLVMbugs] [Bug 19878] New: variadic template arguments deduction

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 28 03:32:13 PDT 2014


            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: unassignedclangbugs at nondot.org
          Reporter: vanyacpp at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140528/de7e4321/attachment.html>

More information about the llvm-bugs mailing list