Re: [PATCH] c++: template-id ADL and partial instantiation [PR99911]

2021-11-18 Thread Jason Merrill via Gcc-patches
On 11/18/21 10:31, Patrick Palka wrote: On Thu, 18 Nov 2021, Patrick Palka wrote: On Thu, 18 Nov 2021, Jason Merrill wrote: On 11/10/21 11:53, Patrick Palka wrote: Here when partially instantiating the call get(T{}) with T=N::A (for which earlier unqualified name lookup for 'get' found nothi

Re: [PATCH] c++: template-id ADL and partial instantiation [PR99911]

2021-11-18 Thread Patrick Palka via Gcc-patches
On Thu, 18 Nov 2021, Patrick Palka wrote: > On Thu, 18 Nov 2021, Jason Merrill wrote: > > > On 11/10/21 11:53, Patrick Palka wrote: > > > Here when partially instantiating the call get(T{}) with T=N::A > > > (for which earlier unqualified name lookup for 'get' found nothing) > > > the arguments a

Re: [PATCH] c++: template-id ADL and partial instantiation [PR99911]

2021-11-18 Thread Patrick Palka via Gcc-patches
On Thu, 18 Nov 2021, Jason Merrill wrote: > On 11/10/21 11:53, Patrick Palka wrote: > > Here when partially instantiating the call get(T{}) with T=N::A > > (for which earlier unqualified name lookup for 'get' found nothing) > > the arguments after substitution are no longer dependent but the calle

Re: [PATCH] c++: template-id ADL and partial instantiation [PR99911]

2021-11-17 Thread Jason Merrill via Gcc-patches
On 11/10/21 11:53, Patrick Palka wrote: Here when partially instantiating the call get(T{}) with T=N::A (for which earlier unqualified name lookup for 'get' found nothing) the arguments after substitution are no longer dependent but the callee still is, so perform_koenig_lookup postpones ADL. Bu

[PATCH] c++: template-id ADL and partial instantiation [PR99911]

2021-11-10 Thread Patrick Palka via Gcc-patches
Here when partially instantiating the call get(T{}) with T=N::A (for which earlier unqualified name lookup for 'get' found nothing) the arguments after substitution are no longer dependent but the callee still is, so perform_koenig_lookup postpones ADL. But then we go on to diagnose the unresolved