c-decl.c (grokdeclarator): Instead of looking at TREE_OVERFLOW check if the constant...
authorRichard Guenther <rguenther@suse.de>
Tue, 3 May 2011 08:48:00 +0000 (08:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 May 2011 08:48:00 +0000 (08:48 +0000)
commit60a45536f1179f87632fb4f8c52ce0891f3a43a9
tree570148c322dc5167165f0bfd7d9b64198c1a2065
parent539d6b4aec3bbbcacf918db6edb57fe7c65e54d8
c-decl.c (grokdeclarator): Instead of looking at TREE_OVERFLOW check if the constant fits in the index type.

2011-05-03  Richard Guenther  <rguenther@suse.de>

* c-decl.c (grokdeclarator): Instead of looking at
TREE_OVERFLOW check if the constant fits in the index type.

* gcc.dg/large-size-array-5.c: New testcase.

From-SVN: r173297
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/large-size-array-5.c [new file with mode: 0644]