summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-27 21:38:24 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-27 21:38:24 +0000
commitaa2aac028fa1e82782f6eb837e4022e38904abc1 (patch)
treee6b8ed1922c32cf26698fec9ff11670ef2376e77 /gcc/cp/error.c
parent3ba076a597e57de5e82deed0ef54ad6f18c09a52 (diff)
downloadgcc-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.c5
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)