From: Jason Merrill Date: Mon, 18 Apr 2011 00:50:21 +0000 (-0400) Subject: * tree.c (get_target_expr): Handle VEC_INIT_EXPR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=991e015686a39b50e4a756b463d250aeb07267f6;p=gcc.git * tree.c (get_target_expr): Handle VEC_INIT_EXPR. From-SVN: r172631 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cd71a1dde5f..04812d16b89 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2011-04-17 Jason Merrill + + * tree.c (get_target_expr): Handle VEC_INIT_EXPR. + 2011-04-17 Jan Hubicka * class.c (cp_fold_obj_type_ref): Drop vtable_method. diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index ad004bba28e..25f2c32f0f2 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -605,6 +605,8 @@ get_target_expr (tree init) { if (TREE_CODE (init) == AGGR_INIT_EXPR) return build_target_expr (AGGR_INIT_EXPR_SLOT (init), init); + else if (TREE_CODE (init) == VEC_INIT_EXPR) + return build_target_expr (VEC_INIT_EXPR_SLOT (init), init); else return build_target_expr_with_type (init, TREE_TYPE (init)); }