aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-12-14 14:31:49 -0500
committerJason Merrill <jason@gcc.gnu.org>2000-12-14 14:31:49 -0500
commit2be678ffb766a0931c15054e9b81538a7accbf8e (patch)
tree19725b871665e3d302d7df1004528ba49fd8f8d9 /gcc/cp/pt.c
parent7dfa399da1d38733ffebf77cd9a70df950e2cb20 (diff)
downloadgcc-2be678ffb766a0931c15054e9b81538a7accbf8e.zip
gcc-2be678ffb766a0931c15054e9b81538a7accbf8e.tar.gz
gcc-2be678ffb766a0931c15054e9b81538a7accbf8e.tar.bz2
comment
From-SVN: r38258
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 87d4195..a4463eb 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5788,6 +5788,9 @@ tsubst_decl (t, args, type, in_decl)
maybe_retrofit_in_chrg (r);
if (DECL_CONSTRUCTOR_P (r))
grok_ctor_properties (ctx, r);
+ /* If this is an instantiation of a member template, clone it.
+ If it isn't, that'll be handled by
+ clone_constructors_and_destructors. */
if (PRIMARY_TEMPLATE_P (gen_tmpl))
clone_function_decl(r, /*update_method_vec_p=*/0);
}