method.c (hack_identifier): Finding multiple members is always an error.
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>
Mon, 21 Sep 1998 13:34:10 +0000 (13:34 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Mon, 21 Sep 1998 13:34:10 +0000 (13:34 +0000)
1998-09-20  Martin von L�wis  <loewis@informatik.hu-berlin.de>
* method.c (hack_identifier): Finding multiple members is always
an error.

From-SVN: r22528

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

index 40293b886bd81fa3c31191f6f27f2fda29ed80b2..6ccd3bf7127e2313f60e9ffb2c5a469e05446cdd 100644 (file)
@@ -1,3 +1,8 @@
+1998-09-20  Martin von Löwis  <loewis@informatik.hu-berlin.de>
+
+       * method.c (hack_identifier): Finding multiple members is always
+       an error.
+
 1998-09-21  Per Bothner  <bothner@cygnus.com>
 
        * Make-lang.in (c++-filt):  Link libiberty.a after cxxmain.o.
index 0b7260cf4902e407384dd732756ff201e4e79a42..2702ac59771965d32af2e2b6faf9503b52733172 100644 (file)
@@ -1944,14 +1944,9 @@ hack_identifier (value, name)
     }
   else if (TREE_CODE (value) == TREE_LIST && TREE_NONLOCAL_FLAG (value))
     {
-      if (type == 0)
-       {
-         error ("request for member `%s' is ambiguous in multiple inheritance lattice",
-                IDENTIFIER_POINTER (name));
-         return error_mark_node;
-       }
-
-      return value;
+      error ("request for member `%s' is ambiguous in multiple inheritance lattice",
+            IDENTIFIER_POINTER (name));
+      return error_mark_node;
     }
 
   if (! processing_template_decl)