Commit 86316060 by Jason Merrill Committed by Jason Merrill

* semantics.c (build_data_member_initialization): Remove assert.

From-SVN: r167437
parent 9c60a01a
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.
......
......@@ -5484,10 +5484,8 @@ build_data_member_initialization (tree t, VEC(constructor_elt,gc) **vec)
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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment