pt.c (instantiate_decl): Call cp_finish_decl for vars even if we don't define them yet.

* pt.c (instantiate_decl): Call cp_finish_decl for vars even if we
	don't define them yet.

From-SVN: r17763
This commit is contained in:
Jason Merrill 1998-02-07 17:14:22 +00:00 committed by Jason Merrill
parent ced6816015
commit bd0f14dcbf
2 changed files with 5 additions and 2 deletions

View 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.

View 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)