[PATCH] fix #69277 - [6 Regression] ICE mangling a flexible array member

Martin Sebor msebor@gmail.com
Thu Jan 14 22:46:00 GMT 2016


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).

Tested on x86_64.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-69277.patch
Type: text/x-patch
Size: 5324 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160114/f9ed5a38/attachment.bin>


More information about the Gcc-patches mailing list