https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78635

--- Comment #8 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
The fix for both bugs is the same -- reject creation of arrays of trailing
array elements.  We used to reject initializers for such arrays, then we
silently accepted them (generating wrong code), now we ICE.  It seems perverse
to think going from 'silent wrong code' to 'ICE' to be a regression.

I suspect we could easily generate wrong code even without an initializer, as
the array layout would overlay a previous element's trailing array with a
subsequent element.  That's bound to confuse optimizers.

Reply via email to