re PR c++/22494 (C++ front-end produces mis-match types in EQ_EXPR (array deconstructor))
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. From-SVN: r112529
This commit is contained in:
parent
b70f12770b
commit
5cd88d6857
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -2212,7 +2212,8 @@ build_vec_delete_1 (tree base, tree maxindex, tree type,
|
|||
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)));
|
||||
|
|
Loading…
Reference in New Issue