Re: [PATCH] c++: non-dependent immediate member fn call [PR99895]

2022-01-27 Thread Jason Merrill via Gcc-patches
hat makes build_over_call build the COMPONENT_REF-using form for non-dependent member calls, and in passing makes us avoid wrapping PARM_DECL in a NON_DEPENDENT_EXPR. -- >8 -- Subject: [PATCH] c++: non-dependent immediate member fn call [PR99895] Here we're emitting a bogus error during ahead of t

Re: [PATCH] c++: non-dependent immediate member fn call [PR99895]

2022-01-27 Thread Patrick Palka via Gcc-patches
ing constexpr > > evaluation? > > Actually, for that particular example, we probably should just avoid > wrapping PARM_DECL in a NON_DEPENDENT_EXPR... Here's a patch that makes build_over_call build the COMPONENT_REF-using form for non-dependent member calls, and in passing makes us av

Re: [PATCH] c++: non-dependent immediate member fn call [PR99895]

2022-01-26 Thread Patrick Palka via Gcc-patches
On Wed, 26 Jan 2022, Patrick Palka wrote: > On Wed, Jan 19, 2022 at 2:19 PM Jason Merrill wrote: > > > > On 1/19/22 11:15, Patrick Palka wrote: > > > Here we're emitting a bogus error during ahead of time evaluation of a > > > non-dependent immediate member function call such as a.f(args) because

Re: [PATCH] c++: non-dependent immediate member fn call [PR99895]

2022-01-26 Thread Patrick Palka via Gcc-patches
On Wed, Jan 19, 2022 at 2:19 PM Jason Merrill wrote: > > On 1/19/22 11:15, Patrick Palka wrote: > > Here we're emitting a bogus error during ahead of time evaluation of a > > non-dependent immediate member function call such as a.f(args) because > > the defacto templated form for such a call is (a

Re: [PATCH] c++: non-dependent immediate member fn call [PR99895]

2022-01-19 Thread Jason Merrill via Gcc-patches
On 1/19/22 11:15, Patrick Palka wrote: Here we're emitting a bogus error during ahead of time evaluation of a non-dependent immediate member function call such as a.f(args) because the defacto templated form for such a call is (a.f)(args) but we're trying to evaluate it using the intermediate CAL

[PATCH] c++: non-dependent immediate member fn call [PR99895]

2022-01-19 Thread Patrick Palka via Gcc-patches
Here we're emitting a bogus error during ahead of time evaluation of a non-dependent immediate member function call such as a.f(args) because the defacto templated form for such a call is (a.f)(args) but we're trying to evaluate it using the intermediate CALL_EXPR built by build_over_call, which ha