This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 11207
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Matt Kraai <kraai at alumni dot cmu dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Aug 2003 20:46:12 -0400
- Subject: Re: PR 11207
- References: <20030810143415.GF28765@ftbfs.org>
PR c/11207
* c-typeck.c (set_init_index): Check for negative index.
The testcase associated with this patch is producing failures due to
additional error messages:
char font8x8[256][8] = { [-1] = { 0 } }; /* { dg-error "array index in initializer exceeds array bounds" } */
src/gcc/testsuite/gcc.dg/noncompile/20030818-1.c:3: error: array index in initializer exceeds array bounds
src/gcc/testsuite/gcc.dg/noncompile/20030818-1.c:3: error: (near initialization for `font8x8')
PASS: gcc.dg/noncompile/20030818-1.c (test for errors, line 3)
FAIL: gcc.dg/noncompile/20030818-1.c (test for excess errors)
Excess errors:
/src/gcc/testsuite/gcc.dg/noncompile/20030818-1.c:3: error: (near initialization for `font8x8')