This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-10-26


1183. Expansion of parameter packs in declarators

Section: 9.3.4.6  [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.]

9.3.4.6 [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.