This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) tweak to tsubst_decl
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) tweak to tsubst_decl
- From: Jason Merrill <jason at redhat dot com>
- Date: 21 Dec 2000 17:25:01 +0000
2000-12-20 Jason Merrill <jason@redhat.com>
* pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
DECL_TEMPLATE_RESULT.
*** pt.c.~1~ Thu Dec 21 17:08:17 2000
--- pt.c Thu Dec 21 17:08:19 2000
*************** tsubst_decl (t, args, type, in_decl)
*** 5715,5721 ****
DECL_ARGUMENTS (r) = tsubst (DECL_ARGUMENTS (t), args,
/*complain=*/1, t);
! DECL_TEMPLATE_RESULT (r) = NULL_TREE;
TREE_STATIC (r) = 0;
TREE_PUBLIC (r) = TREE_PUBLIC (t);
--- 5715,5721 ----
DECL_ARGUMENTS (r) = tsubst (DECL_ARGUMENTS (t), args,
/*complain=*/1, t);
! DECL_RESULT (r) = NULL_TREE;
TREE_STATIC (r) = 0;
TREE_PUBLIC (r) = TREE_PUBLIC (t);