* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
From-SVN: r100936
This commit is contained in:
parent
fca0efd4da
commit
efe4c4e7d2
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue