Re: [PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-22 Thread Jason Merrill via Gcc-patches
On 12/22/22 12:34, Patrick Palka wrote: On Thu, 15 Dec 2022, Jason Merrill wrote: On 12/15/22 14:31, Patrick Palka wrote: On Thu, 15 Dec 2022, Patrick Palka wrote: On Thu, 15 Dec 2022, Jason Merrill wrote: On 12/12/22 12:20, Patrick Palka wrote: When instantiating a constrained hidden

Re: [PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-22 Thread Patrick Palka via Gcc-patches
On Thu, 15 Dec 2022, Jason Merrill wrote: > On 12/15/22 14:31, Patrick Palka wrote: > > On Thu, 15 Dec 2022, Patrick Palka wrote: > > > > > On Thu, 15 Dec 2022, Jason Merrill wrote: > > > > > > > On 12/12/22 12:20, Patrick Palka wrote: > > > > > When instantiating a constrained hidden template

Re: [PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-15 Thread Jason Merrill via Gcc-patches
On 12/15/22 14:31, Patrick Palka wrote: On Thu, 15 Dec 2022, Patrick Palka wrote: On Thu, 15 Dec 2022, Jason Merrill wrote: On 12/12/22 12:20, Patrick Palka wrote: When instantiating a constrained hidden template friend, we need to substitute into its constraints for sake of declaration

Re: [PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-15 Thread Patrick Palka via Gcc-patches
On Thu, 15 Dec 2022, Patrick Palka wrote: > On Thu, 15 Dec 2022, Jason Merrill wrote: > > > On 12/12/22 12:20, Patrick Palka wrote: > > > When instantiating a constrained hidden template friend, we need to > > > substitute into its constraints for sake of declaration matching. > > > > Hmm, we

Re: [PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-15 Thread Patrick Palka via Gcc-patches
On Thu, 15 Dec 2022, Jason Merrill wrote: > On 12/12/22 12:20, Patrick Palka wrote: > > When instantiating a constrained hidden template friend, we need to > > substitute into its constraints for sake of declaration matching. > > Hmm, we shouldn't need to do declaration matching when there's

Re: [PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-15 Thread Jason Merrill via Gcc-patches
On 12/12/22 12:20, Patrick Palka wrote: When instantiating a constrained hidden template friend, we need to substitute into its constraints for sake of declaration matching. Hmm, we shouldn't need to do declaration matching when there's only a single declaration. For this substitution we

[PATCH] c++: template friend with variadic constraints [PR108066]

2022-12-12 Thread Patrick Palka via Gcc-patches
When instantiating a constrained hidden template friend, we need to substitute into its constraints for sake of declaration matching. For this substitution we use a full argument vector whose outer levels correspond to the class's arguments and innermost level corresponds to the template's