mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-14 12:21:08 +08:00
* class.c (finish_struct_1): Always reset TYPE_FIELDS for empty classes.
From-SVN: r25944
This commit is contained in:
parent
9747e84add
commit
5c6e1aa14a
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user