class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.

* class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.
	* error.c (dump_expr): Handle an ARROW_EXPR.

From-SVN: r19885
This commit is contained in:
Brendan Kehoe 1998-05-19 18:16:49 +00:00 committed by Brendan Kehoe
parent e5030c6c55
commit 5a11e05b69
3 changed files with 14 additions and 0 deletions

View 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.

View 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;

View 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)