This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48320] [C++0x][4.6/4.7 Regression] Template parameter packs cannot be expanded in default template arguments
- From: "dodji at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2011 14:39:18 +0000
- Subject: [Bug c++/48320] [C++0x][4.6/4.7 Regression] Template parameter packs cannot be expanded in default template arguments
- Auto-submitted: auto-generated
- References: <bug-48320-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48320
--- Comment #4 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-09-13 14:39:18 UTC ---
Author: dodji
Date: Tue Sep 13 14:39:15 2011
New Revision: 178811
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178811
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic116.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog