summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-23 15:32:29 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-23 15:32:29 +0000
commitc9fc4edc8068bdc113c880dcb39e85263338ef64 (patch)
treeac99875ae45a6493cedb0c8c84381cd3c74b8b7d /gcc/cp/error.c
parent44a3efe1a275bf4f5e4596928bb2f1d940ec2e3e (diff)
downloadgcc-c9fc4edc8068bdc113c880dcb39e85263338ef64.tar.gz
PR c++/47336
* error.c (dump_template_bindings): Suppress access control. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174072 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index e580fd92158..a6648cc6647 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -313,7 +313,9 @@ dump_template_bindings (tree parms, tree args, VEC(tree,gc)* typenames)
pp_cxx_whitespace (cxx_pp);
pp_equal (cxx_pp);
pp_cxx_whitespace (cxx_pp);
+ push_deferring_access_checks (dk_no_check);
t = tsubst (t, args, tf_none, NULL_TREE);
+ pop_deferring_access_checks ();
/* Strip typedefs. We can't just use TFF_CHASE_TYPEDEF because
pp_simple_type_specifier doesn't know about it. */
t = strip_typedefs (t);