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

From-SVN: r17968
This commit is contained in:
Mike Stump 1998-02-13 14:07:32 +00:00 committed by Jason Merrill
parent 440a6c2a4e
commit 8017079182
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,7 @@
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>
* parse.y (simple_stmt): If the condition isn't a declaration,

View File

@ -2666,13 +2666,11 @@ build_new_1 (exp)
newrval = build_method_call (newrval, ctor_identifier,
init, TYPE_BINFO (true_type), flags);
if (newrval)
{
rval = newrval;
TREE_HAS_CONSTRUCTOR (rval) = 1;
}
else
rval = error_mark_node;
if (newrval == NULL_TREE || newrval == error_mark_node)
return error_mark_node;
rval = newrval;
TREE_HAS_CONSTRUCTOR (rval) = 1;
}
else
rval = build (VEC_INIT_EXPR, TREE_TYPE (rval),