* semantics.c (build_data_member_initialization): Remove assert.

From-SVN: r167437
This commit is contained in:
Jason Merrill 2010-12-03 11:57:05 -05:00 committed by Jason Merrill
parent 9c60a01a9c
commit 86316060db
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -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;
}
}