c-typeck.c (set_init_index): Require designator to be of integer type.
authorJoseph Myers <jsm@polyomino.org.uk>
Wed, 21 Jul 2004 23:51:29 +0000 (00:51 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 21 Jul 2004 23:51:29 +0000 (00:51 +0100)
commit3ea8cd06555c64a073fcc4a1aed9e2083b8e2262
tree718518dc062937fb49e610bc36b58dcaa5c7def1
parent916c59199cfbe12788cef6ad2b7cb8ffdc59af71
c-typeck.c (set_init_index): Require designator to be of integer type.

* c-typeck.c (set_init_index): Require designator to be of integer
type.

testsuite:
* gcc.dg/c99-init-3.c, gcc.dg/gnu99-init-2.c: New tests.
* gcc.dg/noncompile/921102-1.c: Update expected error message.

From-SVN: r85023
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-init-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gnu99-init-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/noncompile/921102-1.c