Commit 5724a0e6 by Scott Snyder Committed by Mark Mitchell

decl.c (finish_destructor_body): Use the base destructor when destroying virtual bases.

	* decl.c (finish_destructor_body): Use the base destructor when
	destroying virtual bases.

From-SVN: r33562
parent 738e2810
2000-04-30 Scott Snyder <snyder@fnal.gov>
* decl.c (finish_destructor_body): Use the base destructor when
destroying virtual bases.
2000-04-30 Mark Mitchell <mark@codesourcery.com>
* expr.c (cplus_expand_expr): Preserve temporaries when expanding
......
......@@ -13875,7 +13875,7 @@ finish_destructor_body ()
TYPE_BINFO (current_class_type));
finish_expr_stmt
(build_scoped_method_call
(current_class_ref, vb, complete_dtor_identifier,
(current_class_ref, vb, base_dtor_identifier,
NULL_TREE));
}
vbases = TREE_CHAIN (vbases);
......
int i;
struct CC
{
virtual ~CC () { ++i; }
};
class BB : virtual public CC
{
};
class AA : public virtual BB
{
};
int main ()
{
{
AA xx;
}
if (i != 1)
return 1;
}
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