aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-12-03 11:57:05 -0500
committerJason Merrill <jason@gcc.gnu.org>2010-12-03 11:57:05 -0500
commit86316060db3145742930d171de3683b9d27d3811 (patch)
tree2008330ecc5f491b1a9d16f303bec1ca5b9df698 /gcc/cp/semantics.c
parent9c60a01a9c238e216af7cd952c7b785842b6a6a4 (diff)
downloadgcc-86316060db3145742930d171de3683b9d27d3811.zip
gcc-86316060db3145742930d171de3683b9d27d3811.tar.gz
gcc-86316060db3145742930d171de3683b9d27d3811.tar.bz2
* semantics.c (build_data_member_initialization): Remove assert.
From-SVN: r167437
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 9b565da..2424e49 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -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;
}
}