re PR c/56078 (causes cc1 to crash)
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Jan 2013 16:59:44 +0000 (17:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 24 Jan 2013 16:59:44 +0000 (17:59 +0100)
commit8824edffd65df2586dac35322a6c9feb465959ad
tree36f4072e307eac2f4d911a7cf4d0ab3e54d7dc0f
parent1513a0d4948d50037ff798e884987d30c83f6cab
re PR c/56078 (causes cc1 to crash)

PR c/56078
* c-typeck.c (set_nonincremental_init_from_string): If
constructor_max_index is NULL, treat it as if tree_int_cst_lt
returned false.
(process_init_element): Likewise.

* gcc.dg/pr56078.c: New test.
* gcc.c-torture/compile/20030305-1.c: Add dg-error lines.

From-SVN: r195432
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20030305-1.c
gcc/testsuite/gcc.dg/pr56078.c [new file with mode: 0644]