OSDN Git Service

PR c/28504
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Sep 2006 23:41:21 +0000 (23:41 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Sep 2006 23:41:21 +0000 (23:41 +0000)
commit2e3bc123c86bc34472ec6c28f12f1f7d532e1915
treee813322b0c544ad6765cf8b4c6af8958787846b1
parentc42e0e2d591a203e8cfedb867b324e3938c890f0
PR c/28504
* c-tree.h (struct c_arg_info): Add pending_sizes.
* c-parser.c (c_parser_parms_declarator,
c_parser_parms_list_declarator): Initialize pending_sizes.
* c-decl.c (get_parm_info): Initialize pending_sizes.
(get_parm_info): Set pending_sizes.
(grokdeclarator): Call put_pending_sizes for parameters for
function definition only.

testsuite:
* gcc.dg/vla-10.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116789 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parser.c
gcc/c-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vla-10.c [new file with mode: 0644]