This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH to arg_assoc_class
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ PATCH to arg_assoc_class
- From: Jason Merrill <jason at redhat dot com>
- Date: 19 Jan 2001 14:56:05 +0000
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. */