Re: [PATCH] c++: constrained lambda inside template [PR92633]

2020-06-01 Thread Jason Merrill via Gcc-patches
On 6/1/20 12:47 PM, Patrick Palka wrote: When regenerating a constrained lambda during instantiation of an enclosing template, we are forgetting to substitute into the lambda's constraints. Fix this by substituting through the constraints during tsubst_lambda_expr. Passes 'make check-c++', and

[PATCH] c++: constrained lambda inside template [PR92633]

2020-06-01 Thread Patrick Palka via Gcc-patches
When regenerating a constrained lambda during instantiation of an enclosing template, we are forgetting to substitute into the lambda's constraints. Fix this by substituting through the constraints during tsubst_lambda_expr. Passes 'make check-c++', and also tested by building the testsuites of