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

Egor Suvorov <egor_suvorov at mail dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egor_suvorov at mail dot ru

--- Comment #3 from Egor Suvorov <egor_suvorov at mail dot ru> ---
It looks like GCC chokes if it has to call unusual constructor of `promise`.
E.g. if `get_return_object()` returns `int` and there is `promise(int)`
constructor (with no `coroutine_handle` in sight), same error occurs.

However, if I return `promise` from `get_return_object()` and provide
`promise(const promise&) {}`, GCC does not crash.

Reply via email to