* class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 1998 18:16:49 +0000 (18:16 +0000)
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 1998 18:16:49 +0000 (18:16 +0000)
* error.c (dump_expr): Handle an ARROW_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19885 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/error.c

index 63ed57b..991ed6f 100644 (file)
@@ -1,3 +1,9 @@
+Tue May 19 15:16:22 1998  Brendan Kehoe  <brendan@cygnus.com>
+
+       * class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.
+
+       * error.c (dump_expr): Handle an ARROW_EXPR.
+
 Tue May 19 15:13:39 1998  Mark Mitchell  <mmitchell@usa.net>
 
        * decl.c (saveable_obstack): Declare.
index e7a9251..3d018e5 100644 (file)
@@ -5530,6 +5530,9 @@ is_empty_class (type)
 {
   tree t;
 
+  if (type == error_mark_node)
+    return 0;
+
   if (! IS_AGGR_TYPE (type))
     return 0;
 
index 9ec1f28..0c72619 100644 (file)
@@ -1591,6 +1591,11 @@ dump_expr (t, nop)
       OB_PUTID (TREE_OPERAND (t, 0));
       break;
 
+    case ARROW_EXPR:
+      dump_expr (TREE_OPERAND (t, 0), nop);
+      OB_PUTS ("->");
+      break;
+
     case SIZEOF_EXPR:
     case ALIGNOF_EXPR:
       if (TREE_CODE (t) == SIZEOF_EXPR)