re PR c++/54440 ([c++11] g++ prematurely applying rule that a template parameter...
authorJason Merrill <jason@redhat.com>
Wed, 26 Feb 2014 17:08:20 +0000 (12:08 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 26 Feb 2014 17:08:20 +0000 (12:08 -0500)
commitb0ff7fe1d223260aea5b7dc3f36892aa57d43c77
tree93a6ef5477c74881949f92fb28e63918dedd14d6
parentf3417723b7829dda4e795a4cbff2765553667b5a
re PR c++/54440 ([c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter)

PR c++/54440
* pt.c (get_template_parm_index): New.
(fixed_parameter_pack_p_1, fixed_parameter_pack_p): New.
(process_template_parm): Allow bare packs in template template
parm template parms.
(coerce_template_parameter_pack): Handle fixed template template
parm packs and fixed packs not at the end of the parm list.
(coerce_template_parms): Handle template parm packs not at the end
of the parm list.
(gen_elem_of_pack_expansion_instantiation): Handle a decl expansion.

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