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

--- Comment #6 from Martin Nowak <c...@dawg.eu> ---
(In reply to Martin Nowak from comment #4)
> We still need a long-term solution to make the mangling not dependent on
> flags like -unittest or -release.
> Using source position (line and col) doesn't work b/c the position might
> differ, e.g. in a .di file or when editing a comment.

This is very similar to the -debug issues we have with template instantiation.
The bottom line would be that only libs with the same flags are linkable.

BTW, g++ counts the number of lambdas per function and assigns them an
increasing id. Using separate counters per scope per entity at least mitigates
the issue.

--

Reply via email to