From: Andreas Tobler Date: Tue, 21 Sep 2004 09:22:00 +0000 (+0200) Subject: decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure. X-Git-Tag: releases/gcc-4.0.0~4765 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6ad178e2ee4c3fdcf7e231f51f83aebc107554f;p=thirdparty%2Fgcc.git decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure. 2004-09-21 Andreas Tobler * decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure. From-SVN: r87798 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6ddc16d3be8d..99f3f3e07b0d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-09-21 Andreas Tobler + + * decl.c (reshape_init_array): Initialize max_index_cst to fix + bootstrap failure. + 2004-09-20 Mark Mitchell PR c++/17530 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 282e5072dadf..fbd27cee0db9 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -4159,7 +4159,7 @@ reshape_init_array (tree elt_type, tree max_index, tree *initp, tree new_init) { bool sized_array_p = (max_index != NULL_TREE); - HOST_WIDE_INT max_index_cst; + HOST_WIDE_INT max_index_cst = 0; HOST_WIDE_INT index; if (sized_array_p)