* expr.c (expand_expr): Bail earlier if we get an error_mark_node.
authorJason Merrill <jason@redhat.com>
Mon, 10 Jul 2000 07:20:47 +0000 (03:20 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 10 Jul 2000 07:20:47 +0000 (03:20 -0400)
From-SVN: r34940

gcc/ChangeLog
gcc/expr.c

index df05c77e73caeeccb0278fdd28e0922cb815cefe..b01f321bf3be81a17b8b8eaa669555808ac690a5 100644 (file)
@@ -1,5 +1,7 @@
 2000-07-09  Jason Merrill  <jason@redhat.com>
 
+       * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
+
        * tree.h (STRIP_NOPS): Check for error_mark_node.
        (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
        (dwarf2out_*): Remove duplicate declarations.
index 02a7a3548619f2815ba44a7556e1bfecc8d47193..7fff07e208071379444db6c97d8ee2fac9e9d158 100644 (file)
@@ -7104,6 +7104,9 @@ expand_expr (exp, target, tmode, modifier)
     case NOP_EXPR:
     case CONVERT_EXPR:
     case REFERENCE_EXPR:
+      if (TREE_OPERAND (exp, 0) == error_mark_node)
+       return error_mark_node;
+
       if (TREE_CODE (type) == UNION_TYPE)
        {
          tree valtype = TREE_TYPE (TREE_OPERAND (exp, 0));