diff options
author | Jason Merrill <jason@redhat.com> | 2010-12-03 11:57:05 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-12-03 11:57:05 -0500 |
commit | 86316060db3145742930d171de3683b9d27d3811 (patch) | |
tree | 2008330ecc5f491b1a9d16f303bec1ca5b9df698 /gcc/cp/semantics.c | |
parent | 9c60a01a9c238e216af7cd952c7b785842b6a6a4 (diff) | |
download | gcc-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.c | 4 |
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; } } |