* pt.c (instantiate_decl): Call push/pop_deferring_access_checks.
From-SVN: r66665
This commit is contained in:
parent
6e39f8601a
commit
7d021397f5
@ -1,3 +1,7 @@
|
||||
2003-05-10 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||
|
||||
* pt.c (instantiate_decl): Call push/pop_deferring_access_checks.
|
||||
|
||||
2003-05-10 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||
|
||||
PR c++/9252
|
||||
|
@ -10809,6 +10809,10 @@ instantiate_decl (d, defer_ok)
|
||||
|
||||
timevar_push (TV_PARSE);
|
||||
|
||||
/* We may be in the middle of deferred access check. Disable
|
||||
it now. */
|
||||
push_deferring_access_checks (dk_no_deferred);
|
||||
|
||||
/* Set TD to the template whose DECL_TEMPLATE_RESULT is the pattern
|
||||
for the instantiation. */
|
||||
td = template_for_substitution (d);
|
||||
@ -11050,6 +11054,7 @@ instantiate_decl (d, defer_ok)
|
||||
|
||||
out:
|
||||
input_location = saved_loc;
|
||||
pop_deferring_access_checks ();
|
||||
pop_tinst_level ();
|
||||
|
||||
timevar_pop (TV_PARSE);
|
||||
|
Loading…
Reference in New Issue
Block a user