OSDN Git Service

PR c/16667
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Oct 2004 22:23:08 +0000 (22:23 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Oct 2004 22:23:08 +0000 (22:23 +0000)
commitde296e5aaa7a148c3862edb2b71bfd514e907518
treed85117008d821ebc849f31a386dc58b0e98b291e
parent58f1b650a6738934f58ae23c8b0f281de4397399
PR c/16667
* c-parse.in (array_designator): New.
(designator): Use it.
(initelt): Only permit array_designator without '=', not ".foo".

testsuite:
* gcc.dg/init-desig-obs-1.c, gcc.dg/init-desig-obs-2.c,
gcc.dg/init-desig-obs-3.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89560 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parse.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/init-desig-obs-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/init-desig-obs-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/init-desig-obs-3.c [new file with mode: 0644]