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

From-SVN: r226581
This commit is contained in:
Jason Merrill 2015-08-04 11:18:45 -04:00 committed by Jason Merrill
parent f107ee3310
commit 3da33383b4
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
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.
2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>

View File

@ -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);