* Fix typo in ChangeLog.
From-SVN: r265234
2018-10-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84705
- * init.c (build_cplus_new): Avoid duplicate diagnostic about
+ * tree.c (build_cplus_new): Avoid duplicate diagnostic about
incomplete type, early return error_mark_node if the second
argument is error_mark_node.
tree rval = build_aggr_init_expr (type, init);
tree slot;
+ if (init == error_mark_node)
+ return error_mark_node;
+
if (!complete_type_or_maybe_complain (type, init, complain))
return error_mark_node;