Re: [PATCH] c++: alias template arguments are evaluated [PR101906]

2022-06-07 Thread Jason Merrill via Gcc-patches
On 6/7/22 14:25, Patrick Palka wrote: On Wed, 23 Mar 2022, Jason Merrill wrote: On 3/22/22 14:31, Patrick Palka wrote: On Tue, 22 Mar 2022, Patrick Palka wrote: Here we're neglecting to clear cp_unevaluated_operand when substituting into the arguments of the alias template-id skip<(T(), 0),

Re: [PATCH] c++: alias template arguments are evaluated [PR101906]

2022-06-07 Thread Patrick Palka via Gcc-patches
On Wed, 23 Mar 2022, Jason Merrill wrote: > On 3/22/22 14:31, Patrick Palka wrote: > > On Tue, 22 Mar 2022, Patrick Palka wrote: > > > > > Here we're neglecting to clear cp_unevaluated_operand when substituting > > > into the arguments of the alias template-id skip<(T(), 0), T> with T=A, > > >

Re: [PATCH] c++: alias template arguments are evaluated [PR101906]

2022-03-23 Thread Jason Merrill via Gcc-patches
On 3/22/22 14:31, Patrick Palka wrote: On Tue, 22 Mar 2022, Patrick Palka wrote: Here we're neglecting to clear cp_unevaluated_operand when substituting into the arguments of the alias template-id skip<(T(), 0), T> with T=A, which means cp_unevaluated_operand remains set during mark_used for

Re: [PATCH] c++: alias template arguments are evaluated [PR101906]

2022-03-22 Thread Patrick Palka via Gcc-patches
On Tue, 22 Mar 2022, Patrick Palka wrote: > Here we're neglecting to clear cp_unevaluated_operand when substituting > into the arguments of the alias template-id skip<(T(), 0), T> with T=A, > which means cp_unevaluated_operand remains set during mark_used for > A::A() and so we never synthesize

[PATCH] c++: alias template arguments are evaluated [PR101906]

2022-03-22 Thread Patrick Palka via Gcc-patches
Here we're neglecting to clear cp_unevaluated_operand when substituting into the arguments of the alias template-id skip<(T(), 0), T> with T=A, which means cp_unevaluated_operand remains set during mark_used for A::A() and so we never synthesize it. Later constant evaluation for the substituted