+2011-07-09 Jason Merrill <jason@redhat.com>
+
+ * tree.c (build_vec_init_elt): Strip TARGET_EXPR.
+
2011-07-08 Jason Merrill <jason@redhat.com>
PR c++/45437
complain);
release_tree_vector (argvec);
+ /* For a trivial constructor, build_over_call creates a TARGET_EXPR. But
+ we don't want one here because we aren't creating a temporary. */
+ if (TREE_CODE (init) == TARGET_EXPR)
+ init = TARGET_EXPR_INITIAL (init);
+
return init;
}
+2011-07-09 Jason Merrill <jason@redhat.com>
+
+ * g++.dg/cpp0x/regress/regress5.C: New.
+
2011-07-08 Jason Merrill <jason@redhat.com>
PR c++/45437
--- /dev/null
+// { dg-options -std=c++0x }
+
+struct A
+{
+ int i;
+ A(int);
+};
+
+struct B
+{
+ virtual void f();
+ A ar[3];
+};
+
+extern B b;
+B b2(b);