* pt.c (lookup_template_class_1): Clear elt.spec.
authorJason Merrill <jason@redhat.com>
Tue, 4 Aug 2015 15:18:45 +0000 (11:18 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 4 Aug 2015 15:18:45 +0000 (11:18 -0400)
From-SVN: r226581

gcc/cp/ChangeLog
gcc/cp/pt.c

index e53e00d088bb889d17629aa240e6549df564dd66..f51132cf8529ae540109a282d6aa0e723a2dfc34 100644 (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>
index 6bf3d23f2a7a45d15b9ec9521104b14d93f39f92..7ad23341ca2aa82d0e529336f1f4e492c6dcf3ec 100644 (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);