[Bug c++/54440] [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter

2016-07-25 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54440

--- Comment #6 from Jason Merrill  ---
Author: jason
Date: Mon Jul 25 19:10:41 2016
New Revision: 238731

URL: https://gcc.gnu.org/viewcvs?rev=238731=gcc=rev
Log:
PR c++/71833 - member template with two parameter packs

PR c++/54440
* pt.c (coerce_template_parameter_pack): Fix logic for
pack index.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-nested1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c

[Bug c++/54440] [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter

2014-02-26 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54440

--- Comment #4 from Jason Merrill jason at gcc dot gnu.org ---
Author: jason
Date: Wed Feb 26 17:08:20 2014
New Revision: 208178

URL: http://gcc.gnu.org/viewcvs?rev=208178root=gccview=rev
Log:
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.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic151.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic152.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/cpp0x/variadic74.C


[Bug c++/54440] [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter

2014-02-26 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54440

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |4.9.0

--- Comment #5 from Jason Merrill jason at gcc dot gnu.org ---
Applied (with minor tweaks).


[Bug c++/54440] [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter

2014-01-29 Thread richard-gccbugzilla at metafoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54440

Richard Smith richard-gccbugzilla at metafoo dot co.uk changed:

   What|Removed |Added

 CC||richard-gccbugzilla@metafoo
   ||.co.uk

--- Comment #3 from Richard Smith richard-gccbugzilla at metafoo dot co.uk ---
Ping? Can the patch be applied now (or has this missed the boat for 4.9 as
well)?


[Bug c++/54440] [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter

2013-06-07 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54440

--- Comment #2 from Paolo Carlini paolo.carlini at oracle dot com ---
Hi Jason. Noticed your patch here scheduled for 4.9...


[Bug c++/54440] [c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter

2013-02-22 Thread jason at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54440



Jason Merrill jason at gcc dot gnu.org changed:



   What|Removed |Added



 Status|UNCONFIRMED |ASSIGNED

   Last reconfirmed||2013-02-22

 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org

   |gnu.org |

 Ever Confirmed|0   |1



--- Comment #1 from Jason Merrill jason at gcc dot gnu.org 2013-02-22 
14:48:06 UTC ---

Created attachment 29523

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29523

patch



Here's a patch for after 4.8 branches.