Commit bd0f14dc by Jason Merrill Committed by Jason Merrill

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
parent ced68160
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. * parse.y (nomods_initdcl0): Add constructor_declarator case.
......
...@@ -5697,7 +5697,7 @@ instantiate_decl (d) ...@@ -5697,7 +5697,7 @@ instantiate_decl (d)
pushclass (DECL_CONTEXT (d), 2); pushclass (DECL_CONTEXT (d), 2);
DECL_INITIAL (d) = tsubst_expr (DECL_INITIAL (code_pattern), args, DECL_INITIAL (d) = tsubst_expr (DECL_INITIAL (code_pattern), args,
TREE_VEC_LENGTH (args), tmpl); TREE_VEC_LENGTH (args), tmpl);
popclass (1); cp_finish_decl (d, DECL_INITIAL (d), NULL_TREE, 0, LOOKUP_NORMAL);
} }
if (pattern_defined) if (pattern_defined)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment