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++ PATCH to arg_assoc_class


Fixing a cut-and-paste error.  No testcase; I don't think this actually
broke anything, since we still do injection, but is obviously correct.

2001-01-19  Ute Pelkmann  <scope.muc@t-online.de>

	* decl2.c (arg_assoc_class): Fix double iteration logic.

*** decl2.c.~1~	Fri Jan 19 14:22:40 2001
--- decl2.c	Fri Jan 19 14:22:49 2001
*************** arg_assoc_class (k, type)
*** 4846,4854 ****
  	   friends = TREE_CHAIN (friends))
  	/* Only interested in global functions with potentially hidden
             (i.e. unqualified) declarations. */
! 	if (TREE_PURPOSE (list) == error_mark_node && TREE_VALUE (list)
! 	    && decl_namespace (TREE_VALUE (list)) == context)
! 	  if (add_function (k, TREE_VALUE (list)))
  	    return 1;
  
    /* Process template arguments.  */
--- 4850,4858 ----
  	   friends = TREE_CHAIN (friends))
  	/* Only interested in global functions with potentially hidden
             (i.e. unqualified) declarations. */
! 	if (TREE_PURPOSE (friends) == error_mark_node && TREE_VALUE (friends)
! 	    && decl_namespace (TREE_VALUE (friends)) == context)
! 	  if (add_function (k, TREE_VALUE (friends)))
  	    return 1;
  
    /* Process template arguments.  */

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