This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Harmonize C++ flexible array member initialization with C (PR c++/80135, PR c++/81922)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Nathan Sidwell <nathan at acm dot org>, gcc-patches at gcc dot gnu dot org, Martin Sebor <msebor at gmail dot com>
- Date: Fri, 15 Dec 2017 21:21:16 +0100
- Subject: Re: [C++ PATCH] Harmonize C++ flexible array member initialization with C (PR c++/80135, PR c++/81922)
- Authentication-results: sourceware.org; auth=none
- References: <20171208161507.GY2353@tucnak> <8017d926-837d-a889-865a-c1528c782c07@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Dec 15, 2017 at 03:09:53PM -0500, Jason Merrill wrote:
> So this change is because the caller is only interested in flexible arrays,
> which can't be deeply nested anymore? In that case, this is no longer a
Yes.
> general purpose function and should be called find_flexarray_init.
Done and committed. Thanks.
As a follow up, I'll try (next week) to avoid walking the whole CONSTRUCTOR
and just look at the last element in it instead in find_flexarray_init.
Jakub