Re: [PATCH] c++: check arity before deduction w/ explicit targs [PR12672]

2021-08-31 Thread Jason Merrill via Gcc-patches
On 8/30/21 9:26 PM, Patrick Palka wrote: During overload resolution, when the arity of a function template clearly disagrees with the arity of the call, no specialization of the function template could yield a viable candidate. The deduction routine type_unification_real already notices this

[PATCH] c++: check arity before deduction w/ explicit targs [PR12672]

2021-08-30 Thread Patrick Palka via Gcc-patches
During overload resolution, when the arity of a function template clearly disagrees with the arity of the call, no specialization of the function template could yield a viable candidate. The deduction routine type_unification_real already notices this situation, but not before it substitutes