From 3da33383b47e9c155c90ab0713a491e782027d27 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 4 Aug 2015 11:18:45 -0400 Subject: [PATCH] * pt.c (lookup_template_class_1): Clear elt.spec. From-SVN: r226581 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/pt.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e53e00d088b..f51132cf852 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2015-08-04 Jason Merrill + * pt.c (lookup_template_class_1): Clear elt.spec. + * tree.c (build_target_expr): Copy the location from value. 2015-08-02 Patrick Palka diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 6bf3d23f2a7..7ad23341ca2 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -7876,6 +7876,7 @@ lookup_template_class_1 (tree d1, tree arglist, tree in_decl, tree context, /* If we already have this specialization, return it. */ elt.tmpl = gen_tmpl; elt.args = arglist; + elt.spec = NULL_TREE; hash = spec_hasher::hash (&elt); entry = type_specializations->find_with_hash (&elt, hash); -- 2.30.2