[Issue 21912] Invalid stack closure when calling delegate inside lambda

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 10 19:22:08 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21912

Sebastiaan Koppe <mail at skoppe.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mail at skoppe.eu

--- Comment #1 from Sebastiaan Koppe <mail at skoppe.eu> ---
The above is a reproduction of a problem I have seen occur several times now.

It always involves a delegate that refers to a parameter. D is supposed to move
the parameter to the heap, creating a closure. But as you can see above, in
more complex cases it produces garbage.

--


More information about the Digitalmars-d-bugs mailing list