summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-14 13:31:26 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-14 13:31:26 +0000
commit8cc44b16787fdc2e8c6d04b3d45b44468364c936 (patch)
tree4373e66fadc960e8a5b868add909050fe8eadf05 /gcc/cp
parent2bae62b625616590d3f9c714a539b3a4d1ec52a7 (diff)
downloadgcc-8cc44b16787fdc2e8c6d04b3d45b44468364c936.tar.gz
* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-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 fe319c1c497..f97de6c375c 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 c17d6f8f372..d9de22d97c9 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);