[Issue 24242] forward inside templates with -dip1000 causes memory corruption

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 13 13:03:11 UTC 2023


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

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #2 from Richard Cattermole <alphaglosined at gmail.com> ---
Swapping forward for move, stops the bug.

Removing forward altogether also stops it.

Going through the alias sequence inside of forward appears to prevent the
compiler from being able to see that the function parameter value is used, and
therefore can go on the stack.

--


More information about the Digitalmars-d-bugs mailing list