diff options
author | Jason Merrill <jason@redhat.com> | 2011-05-23 11:32:29 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-05-23 11:32:29 -0400 |
commit | 42d1e31d0f0352009d851f52a9cfd5273ad303f8 (patch) | |
tree | ac99875ae45a6493cedb0c8c84381cd3c74b8b7d /gcc/cp/error.c | |
parent | 6474197358539b140410d020b0898b4bd30c2252 (diff) | |
download | gcc-42d1e31d0f0352009d851f52a9cfd5273ad303f8.zip gcc-42d1e31d0f0352009d851f52a9cfd5273ad303f8.tar.gz gcc-42d1e31d0f0352009d851f52a9cfd5273ad303f8.tar.bz2 |
re PR c++/47336 ([C++0x] ICE: "Error reporting routines re-entered")
PR c++/47336
* error.c (dump_template_bindings): Suppress access control.
From-SVN: r174072
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index e580fd9..a6648cc 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); |