Re: [PATCH] Fix PR c++/60033

2014-03-07 Thread Jason Merrill
On 03/07/2014 06:07 PM, Adam Butcher wrote: + /* When retrieving a capture pack from a generic lambda, remove the +lambda call op's own template argument list from ARGS. Only the +template arguments active for the closure type should be used to +retrie

[PATCH] Fix PR c++/60033

2014-03-07 Thread Adam Butcher
PR c++/60033 * pt.c (tsubst_copy): When retrieving a capture pack from a generic lambda, remove the lambda's own template argument list prior to fetching the specialization. PR c++/60033 * g++.dg/cpp1y/pr60033.C: New testcase. --- gcc/cp/pt.c

Re: [PATCH] Fix PR c++/60033

2014-03-07 Thread Jason Merrill
On 03/04/2014 02:58 PM, Adam Butcher wrote: PR c++/60033 * pt.c (retrieve_specialization): When retrieving a capture pack from a generic lambda, remove the lambda's own template argument list prior to fetching the specialization. I think I'd prefer to handle this

[PATCH] Fix PR c++/60033

2014-03-04 Thread Adam Butcher
PR c++/60033 * pt.c (retrieve_specialization): When retrieving a capture pack from a generic lambda, remove the lambda's own template argument list prior to fetching the specialization. PR c++/60033 * g++.dg/cpp1y/pr60033.C: New testcase. --- gcc/cp