Re: [PATCH Coroutines] Add error messages for missing methods of awaitable class

2020-01-20 Thread JunMa
在 2020/1/20 下午11:49, Nathan Sidwell 写道: On 1/20/20 12:18 AM, JunMa wrote: Hi This patch adds lookup_awaitable_member, it outputs error messages when any of the await_ready/suspend/resume functions are missing in awaitable class. This patch also add some error check on return value of build_c

Re: [PATCH Coroutines] Add error messages for missing methods of awaitable class

2020-01-20 Thread Nathan Sidwell
On 1/20/20 12:18 AM, JunMa wrote: Hi This patch adds lookup_awaitable_member, it outputs error messages when any of the await_ready/suspend/resume functions are missing in awaitable class. This patch also add some error check on return value of build_co_await since we may failed to build co_

Re: [PATCH Coroutines] Add error messages for missing methods of awaitable class

2020-01-20 Thread JunMa
在 2020/1/20 下午4:55, Iain Sandoe 写道: Hi JunMa, JunMa wrote: gcc/cp 2020-01-20  Jun Ma     * coroutines.cc (lookup_awaitable_member): Lookup an awaitable member.     (build_co_await): Use lookup_awaitable_member instead of lookup_member.     (finish_co_yield_expr, finish_co_awai

Re: [PATCH Coroutines] Add error messages for missing methods of awaitable class

2020-01-20 Thread Iain Sandoe
Hi JunMa, JunMa wrote: gcc/cp 2020-01-20 Jun Ma * coroutines.cc (lookup_awaitable_member): Lookup an awaitable member. (build_co_await): Use lookup_awaitable_member instead of lookup_member. (finish_co_yield_expr, finish_co_await_expr): Add error check on return

[PATCH Coroutines] Add error messages for missing methods of awaitable class

2020-01-19 Thread JunMa
Hi This patch adds lookup_awaitable_member, it outputs error messages when any of the await_ready/suspend/resume functions are missing in awaitable class. This patch also add some error check on return value of build_co_await since we may failed to build co_await_expr. Bootstrap and test on