2010-12-03 Jason Merrill <jason@redhat.com>
+ PR c++/46645
+ * semantics.c (build_data_member_initialization): Remove assert.
+
PR c++/46058
* tree.c (lvalue_kind) [SCOPE_REF]: Handle non-dependent case.
init = unshare_expr (TREE_OPERAND (t, 1));
if (TREE_CODE (member) == INDIRECT_REF)
{
- /* Don't put out anything for value-init of an empty base. */
+ /* Don't put out anything for an empty base. */
gcc_assert (is_empty_class (TREE_TYPE (member)));
- gcc_assert (TREE_CODE (init) == CONSTRUCTOR
- && CONSTRUCTOR_NELTS (init) == 0);
return true;
}
}