Re: [PATCH] c++: Fix deduction with reference NTTP [PR83476]

2021-04-13 Thread Jason Merrill via Gcc-patches
On 4/13/21 6:36 PM, Patrick Palka wrote: In the testcase ref11.C below, during deduction for the call f(a), uses_deducible_template_parms returns false for the dependent specialization A because V is wrapped in an implicit INDIRECT_REF (formed from template_parm_to_arg), and this causes unify_one

[PATCH] c++: Fix deduction with reference NTTP [PR83476]

2021-04-13 Thread Patrick Palka via Gcc-patches
In the testcase ref11.C below, during deduction for the call f(a), uses_deducible_template_parms returns false for the dependent specialization A because V is wrapped in an implicit INDIRECT_REF (formed from template_parm_to_arg), and this causes unify_one_argument to exit early, causing deduction