Re: [PATCH] c++: explicit(bool) malfunction with dependent expression [PR95066]

2020-05-13 Thread Jason Merrill via Gcc-patches
On 5/11/20 7:06 PM, Marek Polacek wrote: I forgot to set DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P when merging two function declarations and as a sad consequence, we never tsubsted the dependent explicit-specifier in tsubst_function_decl, leading to disregarding the explicit-specifier altogether, and w

[PATCH] c++: explicit(bool) malfunction with dependent expression [PR95066]

2020-05-11 Thread Marek Polacek via Gcc-patches
I forgot to set DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P when merging two function declarations and as a sad consequence, we never tsubsted the dependent explicit-specifier in tsubst_function_decl, leading to disregarding the explicit-specifier altogether, and wrongly accepting this test. Bootstrapped/r