* tree.c (get_target_expr): Handle VEC_INIT_EXPR.
authorJason Merrill <jason@redhat.com>
Mon, 18 Apr 2011 00:50:21 +0000 (20:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 18 Apr 2011 00:50:21 +0000 (20:50 -0400)
From-SVN: r172631

gcc/cp/ChangeLog
gcc/cp/tree.c

index cd71a1dde5fc3ea17d26ed9cb8b7b7cfdc32efc2..04812d16b89e7782724764f56a0beadf79bffbc1 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-17  Jason Merrill  <jason@redhat.com>
+
+       * tree.c (get_target_expr): Handle VEC_INIT_EXPR.
+
 2011-04-17  Jan Hubicka  <jh@suse.cz>
 
        * class.c (cp_fold_obj_type_ref): Drop vtable_method.
index ad004bba28e7647c5acbaa77bf3f049f935dc2b6..25f2c32f0f2cfa667f4a1946c03750b12accbfd7 100644 (file)
@@ -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));
 }