2014-03-04 Jason Merrill <jason@redhat.com>
+ PR c++/60417
+ * typeck2.c (process_init_constructor_record): Set
+ CONSTRUCTOR_IS_DIRECT_INIT on {} for omitted initializers.
+
PR c++/60415
PR c++/54359
* parser.c (cp_parser_direct_declarator): Set declarator to
for us, so build up TARGET_EXPRs. If the type in question is
a class, just build one up; if it's an array, recurse. */
next = build_constructor (init_list_type_node, NULL);
+ /* Call this direct-initialization pending DR 1518 resolution so
+ that explicit default ctors don't break valid C++03 code. */
+ CONSTRUCTOR_IS_DIRECT_INIT (next) = true;
next = massage_init_elt (TREE_TYPE (field), next, complain);
/* Warn when some struct elements are implicitly initialized. */