* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.

From-SVN: r100936
This commit is contained in:
Roger Sayle 2005-06-14 13:31:26 +00:00 committed by Roger Sayle
parent fca0efd4da
commit efe4c4e7d2
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-06-14 Roger Sayle <roger@eyesopen.com>
* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
2005-06-13 Geoffrey Keating <geoffk@apple.com>
* Make-lang.in (c++.install-man): Doesn't really depend on installdirs.

View File

@ -7459,6 +7459,7 @@ grokdeclarator (const cp_declarator *declarator,
if (TREE_CODE (type) == ARRAY_TYPE
&& COMPLETE_TYPE_P (type)
&& TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST
&& TREE_OVERFLOW (TYPE_SIZE (type)))
{
error ("size of array %qs is too large", name);