Commit 3da33383 by Jason Merrill Committed by Jason Merrill

* pt.c (lookup_template_class_1): Clear elt.spec.

From-SVN: r226581
parent f107ee33
2015-08-04 Jason Merrill <jason@redhat.com> 2015-08-04 Jason Merrill <jason@redhat.com>
* pt.c (lookup_template_class_1): Clear elt.spec.
* tree.c (build_target_expr): Copy the location from value. * tree.c (build_target_expr): Copy the location from value.
2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
......
...@@ -7876,6 +7876,7 @@ lookup_template_class_1 (tree d1, tree arglist, tree in_decl, tree context, ...@@ -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. */ /* If we already have this specialization, return it. */
elt.tmpl = gen_tmpl; elt.tmpl = gen_tmpl;
elt.args = arglist; elt.args = arglist;
elt.spec = NULL_TREE;
hash = spec_hasher::hash (&elt); hash = spec_hasher::hash (&elt);
entry = type_specializations->find_with_hash (&elt, hash); entry = type_specializations->find_with_hash (&elt, hash);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment