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

From-SVN: r34940
This commit is contained in:
Jason Merrill 2000-07-10 03:20:47 -04:00 committed by Jason Merrill
parent 9a6bb3f78c
commit 4a53008b1e
2 changed files with 5 additions and 0 deletions

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

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