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:
parent
ced6816015
commit
bd0f14dcbf
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user