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

           Summary: Pack expansion into a template-argument-list
                    corresponding to no parameter packs fails
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


The following fails.

template<typename, typename> 
struct A { };

template<typename ...T>
struct B { 
  A<T...> a1;
};

int main() {
  B<int, int> c;
}

Errors:

main1.cpp:6:3: error: too few template arguments for class template 'A'
  A<T...> a1;
  ^
main1.cpp:2:8: note: template is declared here                                  
struct A { };
       ^
1 error generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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