projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a6bb3f
)
* expr.c (expand_expr): Bail earlier if we get an error_mark_node.
author
Jason Merrill
<jason@redhat.com>
Mon, 10 Jul 2000 07:20:47 +0000
(
03:20
-0400)
committer
Jason Merrill
<jason@gcc.gnu.org>
Mon, 10 Jul 2000 07:20:47 +0000
(
03:20
-0400)
From-SVN: r34940
gcc/ChangeLog
patch
|
blob
|
history
gcc/expr.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index df05c77e73caeeccb0278fdd28e0922cb815cefe..b01f321bf3be81a17b8b8eaa669555808ac690a5 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-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.
diff --git
a/gcc/expr.c
b/gcc/expr.c
index 02a7a3548619f2815ba44a7556e1bfecc8d47193..7fff07e208071379444db6c97d8ee2fac9e9d158 100644
(file)
--- a/
gcc/expr.c
+++ b/
gcc/expr.c
@@
-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));