https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103790

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Apparently, master reject the code now since r12-4101-g8009c79b64b532d8:
> 
> test_co_await.cpp: In function ‘task foo()’:
> test_co_await.cpp:48:5: error: ‘await_suspend’ must return ‘void’, ‘bool’ or
> a coroutine handle

the error is correct suspend_always{} is not a valid return for await_suspend()
- but we should not ICE, of course.

Reply via email to