* pt.c (instantiate_decl): Call cp_finish_decl for vars even if we
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 1998 17:14:22 +0000 (17:14 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 1998 17:14:22 +0000 (17:14 +0000)
don't define them yet.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17763 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9970f9d..eac96d2 100644 (file)
@@ -1,4 +1,7 @@
-Sat Feb  7 15:15:57 1998  Jason Merrill  <jason@yorick.cygnus.com>
+Sat Feb  7 16:48:54 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * pt.c (instantiate_decl): Call cp_finish_decl for vars even if we
+       don't define them yet.
 
        * parse.y (nomods_initdcl0): Add constructor_declarator case.
 
index 508719a..1176a5d 100644 (file)
@@ -5697,7 +5697,7 @@ instantiate_decl (d)
       pushclass (DECL_CONTEXT (d), 2);
       DECL_INITIAL (d) = tsubst_expr (DECL_INITIAL (code_pattern), args,
                                      TREE_VEC_LENGTH (args), tmpl);
-      popclass (1);
+      cp_finish_decl (d, DECL_INITIAL (d), NULL_TREE, 0, LOOKUP_NORMAL);
     }
 
   if (pattern_defined)