aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-02-07 17:14:22 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-02-07 12:14:22 -0500
commitbd0f14dcbf6815266a10fc2ad3602b4cfde66cfe (patch)
treec2116d79d349d6b0c6b1ec310a5029dd6f8a0767
parentced68160154a73f6456d624c3deb95194242818c (diff)
downloadgcc-bd0f14dcbf6815266a10fc2ad3602b4cfde66cfe.zip
gcc-bd0f14dcbf6815266a10fc2ad3602b4cfde66cfe.tar.gz
gcc-bd0f14dcbf6815266a10fc2ad3602b4cfde66cfe.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9970f9d..eac96d2 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 508719a..1176a5d 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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)