[LLVMbugs] [Bug 13281] New: [C++11] can't take the size of parameter pack of a template template parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 5 23:57:51 PDT 2012


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

             Bug #: 13281
           Summary: [C++11] can't take the size of parameter pack of a
                    template template parameter
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: eric at boostpro.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The following code fails to compile:

  template<template<class...A> class B>
  struct S
  {
      char foo[sizeof...(A)];
  };

The error is:

1>  main.cpp:4:24: error: 'A' does not refer to the name of a parameter pack
1>      char foo[sizeof...(A)];
1>                         ^

It sure looks like one to me.

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