semantics.c (simplify_aggr_init_exprs_r): Don't restore flag_access_control from uninitialized storage.

* semantics.c (simplify_aggr_init_exprs_r): Don't restore
	flag_access_control from uninitialized storage.

From-SVN: r41408
This commit is contained in:
John David Anglin 2001-04-18 07:55:09 +00:00 committed by Mark Mitchell
parent 52f1c84d2d
commit 41251458b5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
* semantics.c (simplify_aggr_init_exprs_r): Don't restore
flag_access_control from uninitialized storage.
2001-04-15 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.

View File

@ -2298,7 +2298,7 @@ simplify_aggr_init_exprs_r (tp, walk_subtrees, data)
#ifdef PCC_STATIC_STRUCT_RETURN
if (!AGGR_INIT_VIA_CTOR_P (aggr_init_expr) && aggregate_value_p (type))
{
int old_ac;
int old_ac = flag_access_control;
flag_access_control = 0;
call_expr = build_aggr_init (slot, call_expr, LOOKUP_ONLYCONVERTING);