diff options
author | Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> | 2003-05-11 16:16:47 +0000 |
---|---|---|
committer | Kriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org> | 2003-05-11 16:16:47 +0000 |
commit | afb19ffb2929b64f49194b671adf7c02abcb4e76 (patch) | |
tree | de5077a3e2d0272f0d92a22b89ad9dfed04c19fb /gcc/cp/method.c | |
parent | 78d0a54d4143bf30d66641aa4204078da34d3927 (diff) | |
download | gcc-afb19ffb2929b64f49194b671adf7c02abcb4e76.zip gcc-afb19ffb2929b64f49194b671adf7c02abcb4e76.tar.gz gcc-afb19ffb2929b64f49194b671adf7c02abcb4e76.tar.bz2 |
* method.c (synthesize_method): Call push/pop_deferring_access_checks.
From-SVN: r66694
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 12fa923..51af020 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -741,6 +741,10 @@ synthesize_method (tree fndecl) return; } + /* We may be in the middle of deferred access check. Disable + it now. */ + push_deferring_access_checks (dk_no_deferred); + if (! context) push_to_top_level (); else if (nested) @@ -790,6 +794,8 @@ synthesize_method (tree fndecl) pop_from_top_level (); else if (nested) pop_function_context_from (context); + + pop_deferring_access_checks (); } /* Use EXTRACTOR to locate the relevant function called for each base & |