[LLVMbugs] [Bug 9021] New: Pack expansion into a template-argument-list corresponding to no parameter packs fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 21 12:04:25 PST 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: schaub.johannes at googlemail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list