+2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60859
+ * decl.c (reshape_init_r): Do not reject value-initialization of
+ scalar array element.
+
2014-12-01 Marek Polacek <polacek@redhat.com>
PR sanitizer/63956
{
if (SCALAR_TYPE_P (type))
{
- if (complain & tf_error)
- error ("braces around scalar initializer for type %qT", type);
- init = error_mark_node;
+ if (cxx_dialect < cxx11
+ /* Isn't value-initialization. */
+ || CONSTRUCTOR_NELTS (init) > 0)
+ {
+ if (complain & tf_error)
+ error ("braces around scalar initializer for type %qT",
+ type);
+ init = error_mark_node;
+ }
}
else
maybe_warn_cpp0x (CPP0X_INITIALIZER_LISTS);
+2014-12-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/60859
+ * g++.dg/cpp0x/initlist88.C: New.
+
2014-12-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/fuse_adrp_add_1.c: Gate test on aarch64_small.