On 1/28/20 3:55 PM, Iain Sandoe wrote:
While looking at Pr93458, I spotted the following non-fatal, but
unhelpful diagnostic output.

If the user's coroutine return type omits the mandatory promise
type then we will currently restate that error each time we see
a coroutine keyword, which doesn't provide any new information.
This suppresses all but the first instance in each coroutine.

tested on x86_64-darwin16
OK for master?
thanks
Iain

gcc/cp/ChangeLog:

2020-01-28  Iain Sandoe  <i...@sandoe.co.uk>

* coroutines.cc (find_promise_type): Delete unused forward
declaration.
(struct coroutine_info): Add a bool for no promise type error.
(coro_promise_type_found_p): Only emit the error for a missing
promise once in each affected coroutine.

ok, thanks.

nathan
--
Nathan Sidwell

Reply via email to