2014-04-16 Marc Glisse <marc.glisse@inria.fr>
gcc/cp/
* decl.c (reshape_init_r): Handle a single element of vector type.
gcc/testsuite/
* g++.dg/cpp0x/initlist-vect.C: New file.
From-SVN: r209449
+2014-04-16 Marc Glisse <marc.glisse@inria.fr>
+
+ * decl.c (reshape_init_r): Handle a single element of vector type.
+
2014-04-16 Patrick Palka <patrick@parcs.ath.cx>
PR c++/60765
/* "If T is a class type and the initializer list has a single element of
type cv U, where U is T or a class derived from T, the object is
initialized from that element." Even if T is an aggregate. */
- if (cxx_dialect >= cxx11 && CLASS_TYPE_P (type)
+ if (cxx_dialect >= cxx11 && (CLASS_TYPE_P (type) || VECTOR_TYPE_P (type))
&& first_initializer_p
&& d->end - d->cur == 1
&& reference_related_p (type, TREE_TYPE (init)))
+2014-04-16 Marc Glisse <marc.glisse@inria.fr>
+
+ * g++.dg/cpp0x/initlist-vect.C: New file.
+
2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/uninit-B-O0.c: Remove XFAIL.
--- /dev/null
+// { dg-do compile { target c++11 } }
+
+typedef float X __attribute__ ((vector_size (4 * sizeof (float))));
+
+X x;
+X x2{x};