------- Comment #2 from pinskia at gcc dot gnu dot org  2006-05-09 08:11 -------
Doing this:
Index: c-typeck.c
===================================================================
--- c-typeck.c  (revision 113594)
+++ c-typeck.c  (working copy)
@@ -3379,6 +3379,9 @@ build_compound_expr (tree expr1, tree ex
   else if (warn_unused_value)
     warn_if_unused_value (expr1, input_location);

+  if (TREE_CODE (expr2) == ERROR_MARK)
+    return error_mark_node;
+
   return build2 (COMPOUND_EXPR, TREE_TYPE (expr2), expr1, expr2);
 }


Fixes the ICE.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27489

Reply via email to