summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-19 18:16:49 +0000
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-19 18:16:49 +0000
commitc8075df7c0acac4444933547a98c51c119f4b1d8 (patch)
treef840695c26a1a82ffacd28181f6152a2c7724411
parent0bdd1fc893deda06d107ce5613464ec37e1e0c59 (diff)
downloadgcc-c8075df7c0acac4444933547a98c51c119f4b1d8.tar.gz
* class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.
* 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
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/class.c3
-rw-r--r--gcc/cp/error.c5
3 files changed, 14 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 63ed57b87f7..991ed6f6c79 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index e7a9251d332..3d018e5e5c7 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -5530,6 +5530,9 @@ is_empty_class (type)
{
tree t;
+ if (type == error_mark_node)
+ return 0;
+
if (! IS_AGGR_TYPE (type))
return 0;
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 9ec1f28f0e3..0c72619bd0d 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -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)