[Bug c/56078] causes cc1 to crash

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 24 13:28:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56078

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-24 13:27:55 UTC ---
Created attachment 29264
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29264
gcc48-pr56078.patch

Patch I've bootstrapped/regtested.  It seems in most places
constructor_max_index == NULL was treated as unlimited bound (compared to e.g.
constructor_max_index being -1 as zero size bound with nothing allowed), but
these two spots either didn't handle it at all, or incorrectly.

The patch fixes the new testcase, both that it doesn't ICE and behaves
expectedly, but unfortunately at the same time regresses
gcc.c-torture/compile/20030305-1.c testcase, which is no longer accepted.
It was filed as ice-on-invalid, is it really supposed to be a valid GNU C99
testcase?



More information about the Gcc-bugs mailing list