* semantics.c (build_data_member_initialization): Remove assert.
From-SVN: r167437
This commit is contained in:
parent
9c60a01a9c
commit
86316060db
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user