PR c++/64314
PR c++/57510
* typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
that has been completely split out.
From-SVN: r220047
2015-01-23 Jason Merrill <jason@redhat.com>
+ PR c++/64314
+ PR c++/57510
+ * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
+ that has been completely split out.
+
PR c++/64701
* constexpr.c (maybe_constant_value): Just hand back STATEMENT_LIST.
if (!split_nonconstant_init_1 (sub, value))
complete_p = false;
+ else
+ CONSTRUCTOR_ELTS (init)->ordered_remove (idx--);
num_split_elts++;
}
else if (!initializer_constant_valid_p (value, inner_type))
--- /dev/null
+// PR c++/64314
+// { dg-do compile { target c++11 } }
+
+struct C { C(); ~C(); };
+struct A {
+ int i;
+ C c[1];
+} a {};