This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110b. See for the official list.


1183. Expansion of parameter packs in declarators

Section:  [dcl.fct]     Status: C++11     Submitter: Daveed Vandevoorde     Date: 2010-08-26

[Voted into the WP at the March, 2011 meeting as part of paper N3270.] [dcl.fct] paragraph 13 says,

The type T of the declarator-id of the function parameter pack shall contain a template parameter pack; each template parameter pack in T is expanded by the function parameter pack.

I think that's incorrect. For example, I think

    template<class... P> void f(int (* ...p)[sizeof...(P)]);

should be an error, and that the function parameter pack p does not expand the template parameter pack P in this case.

Proposed resolution (November, 2010):

This issue is resolved by the resolution of issue 778.