Re: [PATCH v3] c++: Fix P0960 in member init list and array [PR92812]

2020-09-03 Thread Jason Merrill via Gcc-patches
On 9/2/20 6:08 PM, Marek Polacek wrote: On Wed, Sep 02, 2020 at 05:06:45PM -0400, Jason Merrill wrote: On 9/2/20 4:37 PM, Marek Polacek wrote: I've added do_aggregate_paren_init to factor some common code. It's not perfect because the enclosing conditions couldn't really be factored out, Thi

Re: [PATCH v3] c++: Fix P0960 in member init list and array [PR92812]

2020-09-02 Thread Marek Polacek via Gcc-patches
On Wed, Sep 02, 2020 at 05:06:45PM -0400, Jason Merrill wrote: > On 9/2/20 4:37 PM, Marek Polacek wrote: > > I've added do_aggregate_paren_init to factor some common code. It's not > > perfect because the enclosing conditions couldn't really be factored out, > > This condition: > > > +