OSDN Git Service

PR c/16409
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 2004 19:35:26 +0000 (19:35 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 2004 19:35:26 +0000 (19:35 +0000)
commit5cbd179d875444116e92838078534bcf689ccff3
tree5fc1cb98a75ae0a4738fa2fd992b53aee46095a7
parent0ecedb6fdf659f79d6d35c973874a5c502982ed3
PR c/16409
* c-decl.c (start_decl): Check for initializing incomplete array
of VLAs.
(build_compound_literal): Check for TYPE being error_mark_node.
* c-parse.in (primary): Check for VLA compound literals.

testsuite:
* gcc.dg/vla-init-2.c, gcc.dg/vla-init-3.c, gcc.dg/vla-init-4.c,
gcc.dg/vla-init-5.c: New tests.

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