[Issue 23722] Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 27 11:06:30 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #9 from Dennis <dkorpel at live.nl> ---
(In reply to ilya.yanok from comment #4)
> I have another example of this:

This part has been fixed by https://github.com/dlang/dmd/pull/15343

There's still a linker error from neither module emitting the symbol in the
original test case, and when locations are identical (e.g. static foreach),
there's still a global non-deterministic counter being used. See:
https://github.com/dlang/dmd/pull/15343#issuecomment-2491003102

--


More information about the Digitalmars-d-bugs mailing list