co_returns are statements, not expressions; they do not need
to be wrapped in an EXPR_STMT.
gcc/cp/ChangeLog:
* coroutines.cc (finish_co_return_stmt): Revert change to use
finish_expr_stmt.
" %<co_return%> statement");
expr = build2_loc (kw, CO_RETURN_EXPR, void_type_node, expr, co_ret_call);
- return finish_expr_stmt (expr);
+ expr = maybe_cleanup_point_expr_void (expr);
+ return add_stmt (expr);
}
/* We need to validate the arguments to __builtin_coro_promise, since the