Commit 21b3d0ba by Mark Mitchell Committed by Mark Mitchell

class.c (build_base_field): Make sure we get the canonical base when descending…

class.c (build_base_field): Make sure we get the canonical base when descending through primary bases.

	* class.c (build_base_field): Make sure we get the canonical base
	when descending through primary bases.

From-SVN: r59582
parent 249e6b63
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> 2002-11-26 Geoffrey Keating <geoffk@apple.com>
* decl.c (check_initializer): Don't error on initialisation of * decl.c (check_initializer): Don't error on initialisation of
......
...@@ -3863,7 +3863,10 @@ build_base_field (record_layout_info rli, tree binfo, ...@@ -3863,7 +3863,10 @@ build_base_field (record_layout_info rli, tree binfo,
tree b; tree b;
b = get_primary_binfo (binfo); 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; break;
if (TREE_VIA_VIRTUAL (b)) if (TREE_VIA_VIRTUAL (b))
record_subobject_offsets (BINFO_TYPE (b), record_subobject_offsets (BINFO_TYPE (b),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment