This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/56078] causes cc1 to crash


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]