Re: [PATCH] c++: requires-expression folding [PR101182]

2021-06-24 Thread Jason Merrill via Gcc-patches
On 6/23/21 7:37 PM, Patrick Palka wrote: Here we're crashing because cp_fold_function walks into the (templated) requirements of a requires-expression outside a template, but the folding routines aren't prepared to handle templated trees. This patch fixes this by making cp_fold use

[PATCH] c++: requires-expression folding [PR101182]

2021-06-23 Thread Patrick Palka via Gcc-patches
Here we're crashing because cp_fold_function walks into the (templated) requirements of a requires-expression outside a template, but the folding routines aren't prepared to handle templated trees. This patch fixes this by making cp_fold use evaluate_requires_expr to fold a requires-expression as