This is the mail archive of the gcc-patches@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]

Re: PR 11207


        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')


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