PR c/25161
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2006 00:51:45 +0000 (00:51 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2006 00:51:45 +0000 (00:51 +0000)
commitdc95eae28e68b82ad923e11f17b0f5da7c41d8b1
tree8ee70774544831e67bf621351fbe7a811f974759
parentec63b02e28b96463d1361aa8d0d9b21899ccbf50
PR c/25161
PR c/27020
* c-decl.c (grokdeclarator): Disallow variably modified types at
file scope.  Avoid marking shared array type of constant size as
VLA.

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

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