http://llvm.org/bugs/show_bug.cgi?id=16668

            Bug ID: 16668
           Summary: Rejects-valid with variadic alias template in variadic
                    class template
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Testcase:

template<int ...Args1> struct A {
    template<int ...Args2> using B = A<(Args1+Args2)...>;
};
template<int ...Args> using X = A<1,2,3>::B<Args...>;


Currently prints:
<stdin>:2:53: error: pack expansion contains parameter pack 'Args2' that has a
different length (3 vs. 1) from outer parameter packs
    template<int ...Args2> using B = A<(Args1+Args2)...>;
                                              ~~~~~ ^
<stdin>:4:43: note: in instantiation of template type alias 'B' requested here
template<int ...Args> using X = A<1,2,3>::B<Args...>;
                                          ^
1 error generated.

I don't see any obvious reason why this wouldn't be allowed by the standard.

-- 
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

Reply via email to