Commit 87ec3f77 authored by jason's avatar jason
Browse files

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34940 138bc75d-0d04-0410-961f-82ee72b054a4
parent bdcbc557
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.
......
......@@ -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));
......
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