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

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to mengjun wei from comment #4)
> GCC 11.2 no longer allow return_value and return_void be both defined, may
> this restriction be removed? 

The restriction is part of the C++ standard (for the record, there was
discussion about allowing both to be present, but that was rejected by the
committee).

https://eel.is/c++draft/dcl.fct.def.coroutine#6

So, we cannot remove the restriction.

Reply via email to