(C++) tweak to tsubst_decl

Jason Merrill jason@redhat.com
Thu Dec 21 09:26:00 GMT 2000


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


More information about the Gcc-patches mailing list