diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-27 21:38:24 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-27 21:38:24 +0000 |
commit | aa2aac028fa1e82782f6eb837e4022e38904abc1 (patch) | |
tree | e6b8ed1922c32cf26698fec9ff11670ef2376e77 /gcc/cp/error.c | |
parent | 3ba076a597e57de5e82deed0ef54ad6f18c09a52 (diff) | |
download | gcc-aa2aac028fa1e82782f6eb837e4022e38904abc1.tar.gz |
PR c++/61433
* error.c (dump_template_bindings): Don't tsubst in a clone.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212091 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 27a167a001a..fa3bdc4f6a5 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -318,6 +318,11 @@ dump_template_bindings (cxx_pretty_printer *pp, tree parms, tree args, if (vec_safe_is_empty (typenames) || uses_template_parms (args)) return; + /* Don't try to print typenames when we're processing a clone. */ + if (current_function_decl + && !DECL_LANG_SPECIFIC (current_function_decl)) + return; + FOR_EACH_VEC_SAFE_ELT (typenames, i, t) { if (need_semicolon) |