* init.c (build_new): Propagate error_mark_node up.
From-SVN: r17968
This commit is contained in:
parent
440a6c2a4e
commit
8017079182
@ -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,
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user