Re: [PATCH] Fix PR c++/66786 (ICE with nested lambdas in variable template)

2016-03-07 Thread Jason Merrill
On 03/06/2016 09:30 AM, Patrick Palka wrote: On Sun, Mar 6, 2016 at 1:42 AM, Jason Merrill wrote: On 02/08/2016 12:19 AM, Patrick Palka wrote: Here, we are calling template_class_depth on a FIELD_DECL corresponding to a lambda that is used inside variable template. template_class_depth howev

Re: [PATCH] Fix PR c++/66786 (ICE with nested lambdas in variable template)

2016-03-06 Thread Patrick Palka
On Sun, Mar 6, 2016 at 1:42 AM, Jason Merrill wrote: > On 02/08/2016 12:19 AM, Patrick Palka wrote: >> >> Here, we are calling template_class_depth on a FIELD_DECL corresponding >> to a lambda that is used inside variable template. template_class_depth >> however does not see that this FIELD_DECL

Re: [PATCH] Fix PR c++/66786 (ICE with nested lambdas in variable template)

2016-03-05 Thread Jason Merrill
On 02/08/2016 12:19 AM, Patrick Palka wrote: Here, we are calling template_class_depth on a FIELD_DECL corresponding to a lambda that is used inside variable template. template_class_depth however does not see that this FIELD_DECL is used inside a variable template binding because its chain of D

Re: [PATCH] Fix PR c++/66786 (ICE with nested lambdas in variable template)

2016-03-04 Thread Jason Merrill
OK. Jason

Re: [PATCH] Fix PR c++/66786 (ICE with nested lambdas in variable template)

2016-03-02 Thread Patrick Palka
On Mon, Feb 15, 2016 at 9:42 AM, Patrick Palka wrote: > On Mon, Feb 8, 2016 at 12:19 AM, Patrick Palka wrote: >> Here, we are calling template_class_depth on a FIELD_DECL corresponding >> to a lambda that is used inside variable template. template_class_depth >> however does not see that this FI

Re: [PATCH] Fix PR c++/66786 (ICE with nested lambdas in variable template)

2016-02-15 Thread Patrick Palka
On Mon, Feb 8, 2016 at 12:19 AM, Patrick Palka wrote: > Here, we are calling template_class_depth on a FIELD_DECL corresponding > to a lambda that is used inside variable template. template_class_depth > however does not see that this FIELD_DECL is used inside a variable > template binding becaus