*** empty log message ***
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Jul 1994 04:12:39 +0000 (04:12 +0000)
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Jul 1994 04:12:39 +0000 (04:12 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7774 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/method.c

index aa6a19d..8a5d7fd 100644 (file)
@@ -1,5 +1,8 @@
 Wed Jul 13 03:57:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
 
+        * method.c (hack_identifier): Put back old code so lists of
+        non-functions will be handled properly.
+
         * cp-tree.h (TYPE_NEEDS_CONSTRUCTING): #if 0 out; this macro is now
         defined in the language-independent tree.h.
 
index e5d72b5..f64a16a 100644 (file)
@@ -1458,7 +1458,7 @@ hack_identifier (value, name, yychar)
       return build_component_ref (C_C_D, name, 0, 1);
     }
 
-  if (TREE_CODE (value) == TREE_LIST)
+  if (really_overloaded_fn (value))
     {
       tree t = get_first_fn (value);
       while (t)
@@ -1468,6 +1468,16 @@ hack_identifier (value, name, yychar)
          t = DECL_CHAIN (t);
        }
     }
+  else if (TREE_CODE (value) == TREE_LIST)
+    {
+      tree t = value;
+      while (t && TREE_CODE (t) == TREE_LIST)
+       {
+         assemble_external (TREE_VALUE (t));
+         TREE_USED (t) = 1;
+         t = TREE_CHAIN (t);
+       }
+    }
   else
     {
       assemble_external (value);