[llvm-bugs] [Bug 42107] coroutine_traits on lambda without state

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 4 12:27:45 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42107

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
In the lambda case, the coroutine is the `operator()` member function of the
lambda's closure type. Therefore it has an implicit "*this" parameter that the
coroutine exposes as a first parameter of type `lambda &`, so `sizeof...(Args)`
is 1 for the lambda.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190604/84e653f9/attachment.html>


More information about the llvm-bugs mailing list