revert: re PR c++/40975 (ICE in copy_tree_r on array new)
authorJason Merrill <jason@redhat.com>
Mon, 2 May 2011 22:00:07 +0000 (18:00 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 2 May 2011 22:00:07 +0000 (18:00 -0400)
commitb73a47045560ac7b2b808736383e8b5f8a97f55a
treeb12080d3b449b44ff26a30a933c60a85a3b7b7ae
parent3533b943d1c7a7afec4f85750e2a463e277aa0d8
revert: re PR c++/40975 (ICE in copy_tree_r on array new)

Revert:
PR c++/40975
* cp-tree.def (VEC_INIT_EXPR): Add third operand.
* cp-tree.h (VEC_INIT_EXPR_NELTS): New.
* cp-gimplify.c (cp_gimplify_expr) [VEC_INIT_EXPR]: Handle it.
* tree.c (build_vec_init_expr): Handle getting pointer/nelts.
(build_vec_init_elt): Don't expect an array type.
(build_array_copy): Adjust.
* init.c (perform_member_init): Adjust.
(build_new_1): Use build_vec_init_expr.

From-SVN: r173274
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.def
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/method.c
gcc/cp/tree.c