diff options
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/class.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4a28e4b..820923d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-03-24 Martin von Löwis <loewis@informatik.hu-berlin.de> + + * class.c (finish_struct_1): Always reset TYPE_FIELDS for empty + classes. + 1999-03-24 Jason Merrill <jason@yorick.cygnus.com> * decl.c (lookup_name_real): Do nested field lookup regardless of diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 07f8f97..4306f14 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -3985,7 +3985,7 @@ finish_struct_1 (t, warn_anon) if (n_baseclasses) /* layout_basetypes will remove the base subobject fields. */ max_has_virtual = layout_basetypes (t, max_has_virtual); - else if (empty) + if (empty) TYPE_FIELDS (t) = fields; my_friendly_assert (TYPE_FIELDS (t) == fields, 981117); |