Re: [PATCH] c++: Prevent warnings for value-dependent exprs [PR96742]

2020-10-27 Thread Jason Merrill via Gcc-patches
On 10/24/20 6:52 PM, Marek Polacek wrote: Here, in r11-155, I changed the call to uses_template_parms to type_dependent_expression_p_push to avoid a crash in C++98 in value_dependent_expression_p on a non-constant expression. But that prompted a host of complaints that we now warn for value-depe

[PATCH] c++: Prevent warnings for value-dependent exprs [PR96742]

2020-10-24 Thread Marek Polacek via Gcc-patches
Here, in r11-155, I changed the call to uses_template_parms to type_dependent_expression_p_push to avoid a crash in C++98 in value_dependent_expression_p on a non-constant expression. But that prompted a host of complaints that we now warn for value-dependent expressions in templates. Those warni