Is there any plans or work going on gcc related to c++ coroutines?

Florian Weimer fweimer@redhat.com
Fri Aug 18 10:58:00 GMT 2017


On 08/18/2017 10:51 AM, Andrew Haley wrote:
> On 17/08/17 16:05, Avi Kivity wrote:
>>
>> On 08/15/2017 02:30 PM, Jonathan Wakely wrote:
>>> On 15 August 2017 at 12:29, Xi Ruoyao wrote:
>>>> On 2017-08-15 12:23 +0100, Jonathan Wakely wrote:
>>>>> See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4680.pdf
>>>> Oh really C++ is keeping developing new language features :)
>>>>
>>>> So would it be implemented in GCC 8?
>>> Nobody is working on it so probably not.
>>
>> That's sad, it is such a compelling feature.
>>
>> I will probably switch to clang soon, despite losing concepts and a 
>> subjective preference for gcc, because of this feature.
> 
> I've seen many odd things on the GCC lists, but this is one of the
> oddest.  Coroutines have been a feature of other programming languages
> for 50 years, and at no point has anyone thought them worthwhile
> enough to put them into C or C++.

There are many coroutine implementations for C in the form of libraries
or preprocessor hacks.  Details might be a bit iffy, but no one seems to
have felt a strong need for compiler support so far.

Thanks,
Florian



More information about the Gcc-help mailing list