Re: [PATCH] c++: constraints and address of template-id

2020-08-07 Thread Jason Merrill via Gcc-patches
On 8/6/20 1:52 PM, Patrick Palka wrote: When resolving the address of a template-id, we need to drop functions whose associated constraints are not satisfied, as per [over.over]. We do so in resolve_address_of_overloaded_function, but not in resolve_overloaded_unification or resolve_nondeduced_c

[PATCH] c++: constraints and address of template-id

2020-08-06 Thread Patrick Palka via Gcc-patches
When resolving the address of a template-id, we need to drop functions whose associated constraints are not satisfied, as per [over.over]. We do so in resolve_address_of_overloaded_function, but not in resolve_overloaded_unification or resolve_nondeduced_context, which seems like an oversight. Bo