aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1999-10-10 15:23:38 -0400
committerJason Merrill <jason@gcc.gnu.org>1999-10-10 15:23:38 -0400
commit07b983cd7142b619b990d572a89a3370ae12f7a6 (patch)
treeff02126c12ac1c7c78e23f055819e8771772afce /gcc/cp
parentc3693cb121c40e71392289ae6278306b984eda99 (diff)
downloadgcc-07b983cd7142b619b990d572a89a3370ae12f7a6.zip
gcc-07b983cd7142b619b990d572a89a3370ae12f7a6.tar.gz
gcc-07b983cd7142b619b990d572a89a3370ae12f7a6.tar.bz2
checked in wrong version
From-SVN: r29892
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/class.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index c9281d7..47fc705 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -3865,8 +3865,9 @@ finish_struct_1 (t)
/* Delete all zero-width bit-fields from the fieldlist */
{
tree *fieldsp = &fields;
- while (*fieldsp && TREE_CODE (*fieldsp) == FIELD_DECL)
- if (DECL_C_BIT_FIELD (*fieldsp) && DECL_INITIAL (*fieldsp))
+ while (*fieldsp)
+ if (TREE_CODE (*fieldsp) == FIELD_DECL
+ && DECL_C_BIT_FIELD (*fieldsp) && DECL_INITIAL (*fieldsp))
*fieldsp = TREE_CHAIN (*fieldsp);
else
fieldsp = &TREE_CHAIN (*fieldsp);