Re: [PATCH] c++: implicit dummy object in requires clause [PR103198]

2021-11-18 Thread Jason Merrill via Gcc-patches
On 11/18/21 14:49, Patrick Palka wrote: On Thu, 18 Nov 2021, Jason Merrill wrote: On 11/17/21 14:52, Patrick Palka wrote: On Wed, 17 Nov 2021, Jason Merrill wrote: On 11/11/21 20:25, Patrick Palka wrote: In the testcase below satisfaction misbehaves for f and g ultimately because find_templ

Re: [PATCH] c++: implicit dummy object in requires clause [PR103198]

2021-11-18 Thread Patrick Palka via Gcc-patches
On Thu, 18 Nov 2021, Jason Merrill wrote: > On 11/17/21 14:52, Patrick Palka wrote: > > On Wed, 17 Nov 2021, Jason Merrill wrote: > > > > > On 11/11/21 20:25, Patrick Palka wrote: > > > > In the testcase below satisfaction misbehaves for f and g ultimately > > > > because find_template_parameters

Re: [PATCH] c++: implicit dummy object in requires clause [PR103198]

2021-11-18 Thread Jason Merrill via Gcc-patches
On 11/17/21 14:52, Patrick Palka wrote: On Wed, 17 Nov 2021, Jason Merrill wrote: On 11/11/21 20:25, Patrick Palka wrote: In the testcase below satisfaction misbehaves for f and g ultimately because find_template_parameters fails to notice that the constraint 'val.x' depends on the template pa

Re: [PATCH] c++: implicit dummy object in requires clause [PR103198]

2021-11-17 Thread Patrick Palka via Gcc-patches
On Wed, 17 Nov 2021, Jason Merrill wrote: > On 11/11/21 20:25, Patrick Palka wrote: > > In the testcase below satisfaction misbehaves for f and g ultimately > > because find_template_parameters fails to notice that the constraint > > 'val.x' depends on the template parameters of the class template

Re: [PATCH] c++: implicit dummy object in requires clause [PR103198]

2021-11-17 Thread Jason Merrill via Gcc-patches
On 11/11/21 20:25, Patrick Palka wrote: In the testcase below satisfaction misbehaves for f and g ultimately because find_template_parameters fails to notice that the constraint 'val.x' depends on the template parameters of the class template. In contrast, satisfaction works just fine for h. The

[PATCH] c++: implicit dummy object in requires clause [PR103198]

2021-11-11 Thread Patrick Palka via Gcc-patches
In the testcase below satisfaction misbehaves for f and g ultimately because find_template_parameters fails to notice that the constraint 'val.x' depends on the template parameters of the class template. In contrast, satisfaction works just fine for h. The problem seems to come down to a differenc