c++/48320 - Template parameter packs cannot be expanded in default template arguments
authorDodji Seketeli <dodji@redhat.com>
Tue, 13 Sep 2011 14:39:15 +0000 (14:39 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 13 Sep 2011 14:39:15 +0000 (16:39 +0200)
commit1f15c50b16add97555d590e072801b973892e6bc
tree4bbac53fbb932d32a31e8816e87d08008b2b6757
parent42f833bc5f567f1e4da1964ebbd177a5a1c697a1
c++/48320 - Template parameter packs cannot be expanded in default template arguments

gcc/cp/

PR c++/48320
* pt.c (template_parameter_pack_p):  Support TEMPLATE_PARM_INDEX
nodes.  Add a comment.
(arg_from_parm_pack_p):  New static function, factorized out from
tsubst_pack_expansion and extended to support non-type parameter
packs represented with TEMPLATE_PARM_INDEX nodes.
(tsubst_pack_expansion): Use arg_from_parm_pack_p.

gcc/testsuite/

PR c++/48320
* g++.dg/cpp0x/variadic116.C: New test case.

From-SVN: r178811
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic116.C [new file with mode: 0644]