diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-04-18 07:55:09 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-04-18 07:55:09 +0000 |
commit | 41251458b541f16432a1d6af51a9c935bcfea815 (patch) | |
tree | 092e7dbf1f84c5bc7f1f919dc83a7ebb8a2e34c1 /gcc | |
parent | 52f1c84d2db10d2d086803d9f4943eb25311de35 (diff) | |
download | gcc-41251458b541f16432a1d6af51a9c935bcfea815.zip gcc-41251458b541f16432a1d6af51a9c935bcfea815.tar.gz gcc-41251458b541f16432a1d6af51a9c935bcfea815.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7809c0a..37f3227 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index a6e13ec..87dd778 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -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); |