* class.c (build_base_field): Make sure we get the canonical base
when descending through primary bases.
From-SVN: r59582
+2002-11-27 Mark Mitchell <mark@codesourcery.com>
+
+ * class.c (build_base_field): Make sure we get the canonical base
+ when descending through primary bases.
+
2002-11-26 Geoffrey Keating <geoffk@apple.com>
* decl.c (check_initializer): Don't error on initialisation of
tree b;
b = get_primary_binfo (binfo);
- if (!b || BINFO_PRIMARY_BASE_OF (b) != binfo)
+ if (!b)
+ break;
+ b = CANONICAL_BINFO (b, rli->t);
+ if (BINFO_PRIMARY_BASE_OF (b) != binfo)
break;
if (TREE_VIA_VIRTUAL (b))
record_subobject_offsets (BINFO_TYPE (b),