OSDN Git Service

2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 2004 09:22:00 +0000 (09:22 +0000)
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 2004 09:22:00 +0000 (09:22 +0000)
* decl.c (reshape_init_array): Initialize max_index_cst to fix
bootstrap failure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87798 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 6ddc16d..99f3f3e 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-21  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * decl.c (reshape_init_array): Initialize max_index_cst to fix
+       bootstrap failure.
+
 2004-09-20  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/17530
index 282e507..fbd27ce 100644 (file)
@@ -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)