+2006-03-29 Roger Sayle <roger@eyesopen.com>
+
+ PR c++/22494
+ * init.c (build_vec_delete_1): Convert BASE pointer's type to
+ the base pointer type to avoid a type mismatch in the EQ_EXPR.
+
2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
* search.c (maybe_suppress_debug_info): If
TREE_SIDE_EFFECTS (controller) = 1;
body = build1 (EXIT_EXPR, void_type_node,
- build2 (EQ_EXPR, boolean_type_node, base, tbase));
+ build2 (EQ_EXPR, boolean_type_node, tbase,
+ fold_convert (ptype, base)));
body = build_compound_expr
(body, build_modify_expr (tbase, NOP_EXPR,
build2 (MINUS_EXPR, ptype, tbase, size_exp)));