Re: [PATCH] c++: consider built-in operator candidates first

2021-09-20 Thread Jason Merrill via Gcc-patches
On 9/20/21 15:32, Patrick Palka wrote: On Mon, 20 Sep 2021, Jason Merrill wrote: On 9/20/21 12:46, Patrick Palka wrote: During operator overload resolution, we currently consider non-member candidates before built-in candidates. This didn't make a difference before r12-3346, but after this ch

Re: [PATCH] c++: consider built-in operator candidates first

2021-09-20 Thread Patrick Palka via Gcc-patches
On Mon, 20 Sep 2021, Jason Merrill wrote: > On 9/20/21 12:46, Patrick Palka wrote: > > During operator overload resolution, we currently consider non-member > > candidates before built-in candidates. This didn't make a difference > > before r12-3346, but after this change add_candidates will avoi

Re: [PATCH] c++: consider built-in operator candidates first

2021-09-20 Thread Jason Merrill via Gcc-patches
On 9/20/21 12:46, Patrick Palka wrote: During operator overload resolution, we currently consider non-member candidates before built-in candidates. This didn't make a difference before r12-3346, but after this change add_candidates will avoid computing excess argument conversions if we've alread