OSDN Git Service

* tree.c (really_overloaded_fn): Only see through one TREE_LIST.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Jun 1998 11:45:17 +0000 (11:45 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Jun 1998 11:45:17 +0000 (11:45 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20227 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/tree.c

index 7de6501..89029a7 100644 (file)
@@ -1,5 +1,7 @@
 1998-06-04  Jason Merrill  <jason@yorick.cygnus.com>
 
+       * tree.c (really_overloaded_fn): Only see through one TREE_LIST.
+
        * error.c (dump_expr): Clean up NEW_EXPR case.
 
 1998-06-04  Martin von Löwis  <loewis@informatik.hu-berlin.de>
index 685645a..6e5996f 100644 (file)
@@ -1337,7 +1337,7 @@ really_overloaded_fn (x)
 {     
   /* A baselink is also considered an overloaded function.
      This might also be an ambiguous class member. */
-  while (TREE_CODE (x) == TREE_LIST)
+  if (TREE_CODE (x) == TREE_LIST)
     x = TREE_VALUE (x);
   return (TREE_CODE (x) == OVERLOAD 
          && (TREE_CHAIN (x) != NULL_TREE