From: Jason Merrill Date: Tue, 4 Aug 2015 15:18:45 +0000 (-0400) Subject: * pt.c (lookup_template_class_1): Clear elt.spec. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3da33383b47e9c155c90ab0713a491e782027d27;p=gcc.git * pt.c (lookup_template_class_1): Clear elt.spec. From-SVN: r226581 --- 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);