X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcp%2Fpt.c;h=13bb5aadf4d185bf74781d7e07217b7b15560567;hb=a2dd7f8c0a1412852ba65b4519f6aa03a4bc2053;hp=0bd55e1190c310cec83f9371cce54e1f4beb674c;hpb=f079d28e128eab6516d4c523af67ac01f5851bc0;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 0bd55e1190c..13bb5aadf4d 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -9020,7 +9020,8 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain) specialize R. */ gen_tmpl = most_general_template (DECL_TI_TEMPLATE (t)); argvec = tsubst_template_args (DECL_TI_ARGS - (DECL_TEMPLATE_RESULT (gen_tmpl)), + (DECL_TEMPLATE_RESULT + (DECL_TI_TEMPLATE (t))), args, complain, in_decl); /* Check to see if we already have this specialization. */