OSDN Git Service

2005-11-04 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2005 09:46:43 +0000 (09:46 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2005 09:46:43 +0000 (09:46 +0000)
PR c++/22487
* init.c (build_vec_init): Build comparison of matching
types.

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

gcc/cp/ChangeLog
gcc/cp/init.c

index 2d82433..0e7d5e9 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-04  Richard Guenther  <rguenther@suse.de>
+
+       PR c++/22487
+       * init.c (build_vec_init): Build comparison of matching
+       types.
+
 2005-11-03  Josh Conner  <jconner@apple.com>
 
        PR c++/19989
index 44cfc44..1ff2fd7 100644 (file)
@@ -2613,8 +2613,8 @@ build_vec_init (tree base, tree maxindex, tree init,
 
       for_stmt = begin_for_stmt ();
       finish_for_init_stmt (for_stmt);
-      finish_for_cond (build2 (NE_EXPR, boolean_type_node,
-                              iterator, integer_minus_one_node),
+      finish_for_cond (build2 (NE_EXPR, boolean_type_node, iterator,
+                              build_int_cst (TREE_TYPE (iterator), -1)),
                       for_stmt);
       finish_for_expr (build_unary_op (PREDECREMENT_EXPR, iterator, 0),
                       for_stmt);