Re: [PATCH] c++: excessive instantiation during CTAD [PR101174]

2021-06-23 Thread Jason Merrill via Gcc-patches
On 6/23/21 4:49 PM, Patrick Palka wrote: On Wed, 23 Jun 2021, Jason Merrill wrote: On 6/23/21 2:18 PM, Patrick Palka wrote: We set DECL_CONTEXT on implicitly generated deduction guides so that their access is consistent with that of the constructor. But this apparently leads to excessive inst

Re: [PATCH] c++: excessive instantiation during CTAD [PR101174]

2021-06-23 Thread Patrick Palka via Gcc-patches
On Wed, 23 Jun 2021, Jason Merrill wrote: > On 6/23/21 2:18 PM, Patrick Palka wrote: > > We set DECL_CONTEXT on implicitly generated deduction guides so that > > their access is consistent with that of the constructor. But this > > apparently leads to excessive instantiation in some cases, ultima

Re: [PATCH] c++: excessive instantiation during CTAD [PR101174]

2021-06-23 Thread Jason Merrill via Gcc-patches
On 6/23/21 2:18 PM, Patrick Palka wrote: We set DECL_CONTEXT on implicitly generated deduction guides so that their access is consistent with that of the constructor. But this apparently leads to excessive instantiation in some cases, ultimately because instantiation of a deduction guide should

[PATCH] c++: excessive instantiation during CTAD [PR101174]

2021-06-23 Thread Patrick Palka via Gcc-patches
We set DECL_CONTEXT on implicitly generated deduction guides so that their access is consistent with that of the constructor. But this apparently leads to excessive instantiation in some cases, ultimately because instantiation of a deduction guide should be independent of instantiation of the resu