OSDN Git Service

* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jun 2005 13:31:26 +0000 (13:31 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jun 2005 13:31:26 +0000 (13:31 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100936 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index fe319c1..f97de6c 100644 (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.
index c17d6f8..d9de22d 100644 (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);