This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fix #69277 - [6 Regression] ICE mangling a flexible array member
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Thu, 14 Jan 2016 23:51:18 +0100
- Subject: Re: [PATCH] fix #69277 - [6 Regression] ICE mangling a flexible array member
- Authentication-results: sourceware.org; auth=none
- References: <56982542 dot 4050706 at gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jan 14, 2016 at 03:46:26PM -0700, Martin Sebor wrote:
> c++/69277 reports an ICE when mangling a template specialization
> involving flexible array member. Debugging the problem revealed
> that GCC (prior to the ICE), due to treating flexible array
> members the same as zero-length arrays, produced the wrong mangling
> for the former.
>
> The attached patch fixes the ICE and also corrects the mangling
> (which now also matches Clang's).
But then, shouldn't the decision whether to mangle it the old way or the new
way depend on -fabi-version= ?
Jakub