OSDN Git Service

PR c/39605
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Apr 2009 14:41:06 +0000 (14:41 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Apr 2009 14:41:06 +0000 (14:41 +0000)
commitce4e9a43cd39218ad1369a099df19b2b2997ae1e
tree1b594cd6ac30f778bcb2ffce2d24267f82199988
parent04b63ffef6183790951984b4899379ac76e890b1
PR c/39605
* c-decl.c (grokdeclarator): Pedwarn for file-scope array
declarator whose size is not an integer constant expression but
folds to an integer constant, then treat it as a constant
subsequently.

testsuite:
* gcc.dg/vla-17.c, gcc.dg/vla-18.c: New tests.
* gcc.dg/pr25682.c: Update expected diagnostics.

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