aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-11-22 00:21:13 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-11-22 00:21:13 +0000
commit12eb9f939a967d5a34c32749705ab5cdfa030742 (patch)
tree20ebc5c2f5c91c1b998a25e57927cef63691ea1c /gcc/cp/pt.c
parent3258e9961c0c10b625cf1bcaf7dec24a5c722f45 (diff)
downloadgcc-12eb9f939a967d5a34c32749705ab5cdfa030742.zip
gcc-12eb9f939a967d5a34c32749705ab5cdfa030742.tar.gz
gcc-12eb9f939a967d5a34c32749705ab5cdfa030742.tar.bz2
re PR c++/3637 (Internal compiler error in finish_member_declaration)
PR c++/3637 * pt.c (lookup_template_class): Ensure that all specializations are registered on the list corresponding to the most general template. From-SVN: r47252
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index f1a41f2..f80392a 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -4211,9 +4211,8 @@ lookup_template_class (d1, arglist, in_decl, context, entering_scope, complain)
Create the partial instantiation.
*/
TREE_VEC_LENGTH (arglist)--;
- template = tsubst (template, arglist, /*complain=*/0, NULL_TREE);
+ found = tsubst (template, arglist, /*complain=*/0, NULL_TREE);
TREE_VEC_LENGTH (arglist)++;
- found = template;
}
}