Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2020-01-02 Thread Christophe Lyon
On Thu, 2 Jan 2020 at 15:45, Jakub Jelinek wrote: > On Thu, Jan 02, 2020 at 03:41:30PM +0100, Christophe Lyon wrote: > > The new test fails on aarch64: > > g++.dg/cpp0x/initlist118.C -std=c++14 (internal compiler error) > > g++.dg/cpp0x/initlist118.C -std=c++14 (test for excess errors)

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2020-01-02 Thread Jakub Jelinek
On Thu, Jan 02, 2020 at 03:41:30PM +0100, Christophe Lyon wrote: > The new test fails on aarch64: > g++.dg/cpp0x/initlist118.C -std=c++14 (internal compiler error) > g++.dg/cpp0x/initlist118.C -std=c++14 (test for excess errors) > g++.dg/cpp0x/initlist118.C -std=c++17 (internal compi

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2020-01-02 Thread Christophe Lyon
On Fri, 20 Dec 2019 at 21:28, Marek Polacek wrote: > In r268428 I changed reshape_init_r in such a way that when it sees > a nested { } in a CONSTRUCTOR with missing braces, it just returns > the initializer: > + else if (COMPOUND_LITERAL_P (stripped_init) > ... > + ++d->cur; > +

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2019-12-29 Thread Jakub Jelinek
On Fri, Dec 20, 2019 at 06:22:10PM -0500, Marek Polacek wrote: > > > 2019-12-20 Marek Polacek > > > > > > PR c++/92745 - bogus error when initializing array of vectors. > > > * decl.c (reshape_init_r): For a nested compound literal, do > > > call reshape_init_{class,array,vector}. > > >

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2019-12-25 Thread Jason Merrill
On Fri, Dec 20, 2019, 6:22 PM Marek Polacek wrote: > On Fri, Dec 20, 2019 at 05:56:39PM -0500, Jason Merrill wrote: > > On 12/20/19 3:27 PM, Marek Polacek wrote: > > > In r268428 I changed reshape_init_r in such a way that when it sees > > > a nested { } in a CONSTRUCTOR with missing braces, it j

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2019-12-20 Thread Marek Polacek
On Fri, Dec 20, 2019 at 05:56:39PM -0500, Jason Merrill wrote: > On 12/20/19 3:27 PM, Marek Polacek wrote: > > In r268428 I changed reshape_init_r in such a way that when it sees > > a nested { } in a CONSTRUCTOR with missing braces, it just returns > > the initializer: > > + else if (COMPOUND_

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2019-12-20 Thread Jason Merrill
On 12/20/19 3:27 PM, Marek Polacek wrote: In r268428 I changed reshape_init_r in such a way that when it sees a nested { } in a CONSTRUCTOR with missing braces, it just returns the initializer: + else if (COMPOUND_LITERAL_P (stripped_init) ... + ++d->cur; + gcc_assert (!BRACE_

Re: [C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2019-12-20 Thread Jason Merrill
On 12/20/19 3:27 PM, Marek Polacek wrote: In r268428 I changed reshape_init_r in such a way that when it sees a nested { } in a CONSTRUCTOR with missing braces, it just returns the initializer: + else if (COMPOUND_LITERAL_P (stripped_init) ... + ++d->cur; + gcc_assert (!BRACE_

[C++ PATCH] PR c++/92745 - bogus error when initializing array of vectors.

2019-12-20 Thread Marek Polacek
In r268428 I changed reshape_init_r in such a way that when it sees a nested { } in a CONSTRUCTOR with missing braces, it just returns the initializer: + else if (COMPOUND_LITERAL_P (stripped_init) ... + ++d->cur; + gcc_assert (!BRACE_ENCLOSED_INITIALIZER_P (stripped_init)); +