[Bug c++/103358] what is the first constructor argument of lambda coroutine promise_type?
netcan1996 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Dec 18 13:04:12 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103358
--- Comment #2 from Net Can <netcan1996 at gmail dot com> ---
(In reply to Iain Sandoe from comment #1)
> There was a long discussion about this between the various WG21 paper
> authors.
>
> The stated intend was that 'this' pointer and the 'lambda object pointer'
> were intended to be cast to references (to the same type as their pointers).
>
> This behaviour should be the same between MSVC, clang and GCC (but I fear
> that the amendment did not make C++20 timescale - so we might need a
> coordinated change to remove it from the compilers).
>
> Does that explain what you are seeing?
yes, I see. thank you for your explanation.
More information about the Gcc-bugs
mailing list