aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-02-23 07:00:04 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-02-23 07:00:04 -0500
commit2d6df019f809c8338ca1c0f7e17035c0bd981884 (patch)
treed312bcb905f6181318a303f94806048da136f810 /gcc
parent49f9cda8a291f41dab099be33e68c4fa752a661a (diff)
downloadgcc-2d6df019f809c8338ca1c0f7e17035c0bd981884.zip
gcc-2d6df019f809c8338ca1c0f7e17035c0bd981884.tar.gz
gcc-2d6df019f809c8338ca1c0f7e17035c0bd981884.tar.bz2
comment
From-SVN: r18207
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 73a2207..c6d8f18 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6080,6 +6080,8 @@ instantiate_decl (d)
/* Trick tsubst into giving us a new decl in case the template changed. */
save_ti = DECL_TEMPLATE_INFO (decl_pattern);
DECL_TEMPLATE_INFO (decl_pattern) = NULL_TREE;
+ /* decl_pattern has all but one level of template parms bound. Only pass
+ in that one level of args. */
temp = innermost_args (args, DECL_TEMPLATE_SPECIALIZATION (decl_pattern));
td = tsubst (decl_pattern, temp, tmpl);
SET_DECL_IMPLICIT_INSTANTIATION (td);