don't define them yet.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17763
138bc75d-0d04-0410-961f-
82ee72b054a4
-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.
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)