Re: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-11-05 Thread Jason Merrill
-- > > > From: gcc-patches-ow...@gcc.gnu.org > > > On Behalf Of Jason Merrill > > > Sent: Monday, September 16, 2019 12:33 PM > > > To: gcc-patches@gcc.gnu.org > > > Subject: [C++ PATCH 2/4] Fix conversions for built-in operator overloading >

Re: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-19 Thread Marek Polacek
On Thu, Sep 19, 2019 at 04:11:16PM -0400, Jason Merrill wrote: > Do any of you have a reproducer for this? I've attached it to 91825. Marek

Re: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-19 Thread Jason Merrill
^~~~ > > > > Thanks, > > -Jiangning > > > > > -Original Message- > > > From: gcc-patches-ow...@gcc.gnu.org > > > On Behalf Of Jason Merrill > > > Sent: Monday, September 16, 2019 12:33 PM > > > To: gcc-patches@g

Re: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-19 Thread Jason Merrill
Jason Merrill > > Sent: Monday, September 16, 2019 12:33 PM > > To: gcc-patches@gcc.gnu.org > > Subject: [C++ PATCH 2/4] Fix conversions for built-in operator overloading > > candidates. > > > > While working on C++20 operator<=>, I noticed that build_new_op_1 was

RE: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-18 Thread JiangNing OS
; | ^~~~ Thanks, -Jiangning > -Original Message- > From: gcc-patches-ow...@gcc.gnu.org > On Behalf Of Jason Merrill > Sent: Monday, September 16, 2019 12:33 PM > To: gcc-patches@gcc.gnu.org > Subject: [C++ PATCH 2/4] Fix conversions for built-in operator overloading > c

Re: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-17 Thread Iain Sandoe
> On 17 Sep 2019, at 15:06, Andreas Schwab wrote: > > This breaks bootstrap on aarch64 (during stage2 build): for the record, also on x86_64-darwin1x (attempting some analysis). Iain > > ../../gcc/expmed.c: In function 'rtx_def* emit_store_flag_1(rtx, rtx_code, > rtx, rtx, machine_mode,

Re: [C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-17 Thread Andreas Schwab
This breaks bootstrap on aarch64 (during stage2 build): ../../gcc/expmed.c: In function 'rtx_def* emit_store_flag_1(rtx, rtx_code, rtx, rtx, machine_mode, int, int, machine_mode)': ../../gcc/expmed.c:5602:19: error: 'int_mode' may be used uninitialized in this function

[C++ PATCH 2/4] Fix conversions for built-in operator overloading candidates.

2019-09-15 Thread Jason Merrill
While working on C++20 operator<=>, I noticed that build_new_op_1 was doing too much conversion when a built-in candidate was selected; the standard says it should only perform user-defined conversions, and then leave the normal operator semantics to handle any standard conversions. This is