Re: [PATCH] c++: ICE in requires-expressions with invalid args [PR95735]

2020-06-18 Thread Jason Merrill via Gcc-patches
On 6/18/20 11:11 AM, Marek Polacek wrote: This ICE-on-invalid goes back to GCC 6. In finish_template_variable, if coerce_innermost_template_parms returns error_mark_node, we pass it down to constraints_satisfied_p and that error_mark_node flows down to various satisfy_* functions and then to var

[PATCH] c++: ICE in requires-expressions with invalid args [PR95735]

2020-06-18 Thread Marek Polacek via Gcc-patches
This ICE-on-invalid goes back to GCC 6. In finish_template_variable, if coerce_innermost_template_parms returns error_mark_node, we pass it down to constraints_satisfied_p and that error_mark_node flows down to various satisfy_* functions and then to various tsubst_* functions, where we crash. di