Commit 80170791 by Mike Stump Committed by Jason Merrill

* init.c (build_new): Propagate error_mark_node up.

From-SVN: r17968
parent 440a6c2a
Fri Feb 13 14:06:22 1998 Mike Stump <mrs@wrs.com>
* init.c (build_new): Propagate error_mark_node up.
Fri Feb 13 13:24:32 1998 Jason Merrill <jason@yorick.cygnus.com> Fri Feb 13 13:24:32 1998 Jason Merrill <jason@yorick.cygnus.com>
* parse.y (simple_stmt): If the condition isn't a declaration, * parse.y (simple_stmt): If the condition isn't a declaration,
......
...@@ -2666,13 +2666,11 @@ build_new_1 (exp) ...@@ -2666,13 +2666,11 @@ build_new_1 (exp)
newrval = build_method_call (newrval, ctor_identifier, newrval = build_method_call (newrval, ctor_identifier,
init, TYPE_BINFO (true_type), flags); init, TYPE_BINFO (true_type), flags);
if (newrval) if (newrval == NULL_TREE || newrval == error_mark_node)
{ return error_mark_node;
rval = newrval;
TREE_HAS_CONSTRUCTOR (rval) = 1; rval = newrval;
} TREE_HAS_CONSTRUCTOR (rval) = 1;
else
rval = error_mark_node;
} }
else else
rval = build (VEC_INIT_EXPR, TREE_TYPE (rval), rval = build (VEC_INIT_EXPR, TREE_TYPE (rval),
......
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