* c-typeck.c (set_init_index): Allow array designators that are
commit88c32270aa798c7e60d83f97eb456a440c7db5db
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Apr 2009 17:24:32 +0000 (24 17:24 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Apr 2009 17:24:32 +0000 (24 17:24 +0000)
treea6300e7d88299fc54fd9ad19a6c84f9e22ccfa43
parent5daf45f29a68366981a30dc0deb3dae9b494d5ba
* c-typeck.c (set_init_index): Allow array designators that are
not integer constant expressions with a pedwarn if pedantic.

testsuite:
* gcc.dg/array-const-1.c, gcc.dg/array-const-2.c,
gcc.dg/array-const-3.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146741 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/array-const-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/array-const-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/array-const-3.c [new file with mode: 0644]