Re: [PATCH] c++: Wrong error with alias template in class tmpl [PR104108]

2022-03-08 Thread Jason Merrill via Gcc-patches
On 3/8/22 17:14, Marek Polacek wrote: In r10-6329 I tried to optimize the number of calls to v_d_e_p in convert_nontype_argument by remembering whether the expression was value-dependent in a bool flag. I did that wrongly assuming that its value-dependence will not be changed by build_converted_

[PATCH] c++: Wrong error with alias template in class tmpl [PR104108]

2022-03-08 Thread Marek Polacek via Gcc-patches
In r10-6329 I tried to optimize the number of calls to v_d_e_p in convert_nontype_argument by remembering whether the expression was value-dependent in a bool flag. I did that wrongly assuming that its value-dependence will not be changed by build_converted_constant_expr. This testcase shows that