2000-03-21 Mark Mitchell <mark@codesourcery.com>
+ * class.c (build_base_field): Fix thinko in computation of binfo
+ offsets.
+
* tree.c (mark_local_for_remap_p): Mark variables declared in
TARGET_EXPRs as well.
DECL_ALIGN (decl));
if (complete)
- cp_finish_decl (decl, NULL_TREE, NULL_TREE, 0);
+ {
+ DECL_EXTERNAL (decl) = 1;
+ cp_finish_decl (decl, NULL_TREE, NULL_TREE, 0);
+ }
return decl;
}
{
/* That didn't work. Now, we move forward from the next
available spot in the class. */
- propagate_binfo_offsets (binfo, size_int (rli->const_size));
+ propagate_binfo_offsets (binfo,
+ size_int (rli->const_size / BITS_PER_UNIT));
while (1)
{
if (!dfs_walk (binfo, dfs_search_base_offsets,