2005-08-22 James E Wilson PR tree-optimization/23426 * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for array size check. Index: decl.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v retrieving revision 1.1418 diff -p -p -r1.1418 decl.c *** decl.c 15 Aug 2005 20:38:14 -0000 1.1418 --- decl.c 17 Aug 2005 22:43:08 -0000 *************** grokdeclarator (const cp_declarator *dec *** 7556,7563 **** 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); /* If we proceed with the array type as it is, we'll eventually --- 7556,7563 ---- if (TREE_CODE (type) == ARRAY_TYPE && COMPLETE_TYPE_P (type) ! && TREE_CODE (TYPE_SIZE_UNIT (type)) == INTEGER_CST ! && TREE_OVERFLOW (TYPE_SIZE_UNIT (type))) { error ("size of array %qs is too large", name); /* If we proceed with the array type as it is, we'll eventually