Commit afb19ffb by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

* method.c (synthesize_method): Call push/pop_deferring_access_checks.

From-SVN: r66694
parent 78d0a54d
2003-05-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> 2003-05-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* method.c (synthesize_method): Call push/pop_deferring_access_checks.
2003-05-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/10230, c++/10481 PR c++/10230, c++/10481
* semantics.c (finish_non_static_data_member): Handle when the * semantics.c (finish_non_static_data_member): Handle when the
non-static member is not from a base of the current class type. non-static member is not from a base of the current class type.
......
...@@ -741,6 +741,10 @@ synthesize_method (tree fndecl) ...@@ -741,6 +741,10 @@ synthesize_method (tree fndecl)
return; return;
} }
/* We may be in the middle of deferred access check. Disable
it now. */
push_deferring_access_checks (dk_no_deferred);
if (! context) if (! context)
push_to_top_level (); push_to_top_level ();
else if (nested) else if (nested)
...@@ -790,6 +794,8 @@ synthesize_method (tree fndecl) ...@@ -790,6 +794,8 @@ synthesize_method (tree fndecl)
pop_from_top_level (); pop_from_top_level ();
else if (nested) else if (nested)
pop_function_context_from (context); pop_function_context_from (context);
pop_deferring_access_checks ();
} }
/* Use EXTRACTOR to locate the relevant function called for each base & /* Use EXTRACTOR to locate the relevant function called for each base &
......
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