aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2005-06-14 13:31:26 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2005-06-14 13:31:26 +0000
commitefe4c4e7d2e0e003177382034a65384a8ad1ce42 (patch)
tree4373e66fadc960e8a5b868add909050fe8eadf05 /gcc
parentfca0efd4daa22e4c7a14805f39feda4e14fc6f4a (diff)
downloadgcc-efe4c4e7d2e0e003177382034a65384a8ad1ce42.zip
gcc-efe4c4e7d2e0e003177382034a65384a8ad1ce42.tar.gz
gcc-efe4c4e7d2e0e003177382034a65384a8ad1ce42.tar.bz2
* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
From-SVN: r100936
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index fe319c1..f97de6c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index c17d6f8..d9de22d 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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);