Commit 4a53008b by Jason Merrill Committed by Jason Merrill

* expr.c (expand_expr): Bail earlier if we get an error_mark_node.

From-SVN: r34940
parent 9a6bb3f7
2000-07-09 Jason Merrill <jason@redhat.com> 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. * tree.h (STRIP_NOPS): Check for error_mark_node.
(STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise. (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
(dwarf2out_*): Remove duplicate declarations. (dwarf2out_*): Remove duplicate declarations.
......
...@@ -7104,6 +7104,9 @@ expand_expr (exp, target, tmode, modifier) ...@@ -7104,6 +7104,9 @@ expand_expr (exp, target, tmode, modifier)
case NOP_EXPR: case NOP_EXPR:
case CONVERT_EXPR: case CONVERT_EXPR:
case REFERENCE_EXPR: case REFERENCE_EXPR:
if (TREE_OPERAND (exp, 0) == error_mark_node)
return error_mark_node;
if (TREE_CODE (type) == UNION_TYPE) if (TREE_CODE (type) == UNION_TYPE)
{ {
tree valtype = TREE_TYPE (TREE_OPERAND (exp, 0)); tree valtype = TREE_TYPE (TREE_OPERAND (exp, 0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment