Re: [PATCH, C++,rebased] Fix PR c++/88261

2019-01-07 Thread Jason Merrill
On 1/7/19 10:38 AM, Bernd Edlinger wrote: On 1/7/19 1:08 AM, Martin Sebor wrote: On 1/5/19 9:04 AM, Bernd Edlinger wrote: On 1/4/19 10:22 PM, Jason Merrill wrote: Hmm, I'm uncomfortable with starting to pass in the decl just for the sake of deciding whether this diagnostic should be a pedwarn

Re: [PATCH, C++,rebased] Fix PR c++/88261

2019-01-07 Thread Bernd Edlinger
On 1/7/19 1:08 AM, Martin Sebor wrote: > On 1/5/19 9:04 AM, Bernd Edlinger wrote: >> On 1/4/19 10:22 PM, Jason Merrill wrote: >>> Hmm, I'm uncomfortable with starting to pass in the decl just for the sake >>> of deciding whether this diagnostic should be a pedwarn or error. In >>> general, becaus

Re: [PATCH, C++,rebased] Fix PR c++/88261

2019-01-06 Thread Martin Sebor
On 1/5/19 9:04 AM, Bernd Edlinger wrote: On 1/4/19 10:22 PM, Jason Merrill wrote: Hmm, I'm uncomfortable with starting to pass in the decl just for the sake of deciding whether this diagnostic should be a pedwarn or error. In general, because of copy elision, we can't know at this point what w

Re: [PATCH, C++,rebased] Fix PR c++/88261

2019-01-05 Thread Bernd Edlinger
On 1/4/19 10:22 PM, Jason Merrill wrote: > Hmm, I'm uncomfortable with starting to pass in the decl just for the sake of > deciding whether this diagnostic should be a pedwarn or error. In general, > because of copy elision, we can't know at this point what we're initializing, > so I'd rather no

Re: [PATCH, C++,rebased] Fix PR c++/88261

2019-01-04 Thread Bernd Edlinger
On 1/4/19 10:22 PM, Jason Merrill wrote: > On 1/4/19 10:30 AM, Bernd Edlinger wrote: >> On 12/22/18 7:53 PM, Bernd Edlinger wrote: >>> On 12/21/18 2:03 AM, Martin Sebor wrote: On 12/20/18 2:07 PM, Bernd Edlinger wrote: > On 12/20/18 6:50 PM, Martin Sebor wrote: >> On 12/20/18 10:46 AM,

Re: [PATCH, C++,rebased] Fix PR c++/88261

2019-01-04 Thread Jason Merrill
On 1/4/19 10:30 AM, Bernd Edlinger wrote: On 12/22/18 7:53 PM, Bernd Edlinger wrote: On 12/21/18 2:03 AM, Martin Sebor wrote: On 12/20/18 2:07 PM, Bernd Edlinger wrote: On 12/20/18 6:50 PM, Martin Sebor wrote: On 12/20/18 10:46 AM, Martin Sebor wrote: On 12/17/18 7:58 AM, Jason Merrill wrote

[PATCH, C++,rebased] Fix PR c++/88261

2019-01-04 Thread Bernd Edlinger
On 12/22/18 7:53 PM, Bernd Edlinger wrote: > On 12/21/18 2:03 AM, Martin Sebor wrote: >> On 12/20/18 2:07 PM, Bernd Edlinger wrote: >>> On 12/20/18 6:50 PM, Martin Sebor wrote: On 12/20/18 10:46 AM, Martin Sebor wrote: > On 12/17/18 7:58 AM, Jason Merrill wrote: >> On 12/15/18 3:36 AM,