coroutines: Handle lambda closure pointers like 'this'.
It was agreed amongst the implementors that the correct interpretation of the standard is that lambda closure pointers should be treated in the same manner as class object pointers. gcc/cp/ChangeLog: * coroutines.cc (instantiate_coro_traits): Pass a reference to lambda closure objects to traits instantiation. (morph_fn_to_coro): Likewise for promise parameter preview and allocator lookup. (cherry picked from commit 1c140cfbfa4b465a29ef26f1fdfef04c671e3c9c)
Showing
Please
register
or
sign in
to comment