This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) tweak to tsubst_decl


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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]