[Issue 14894] mangling of mixins and lambdas can change w/ -unittest or other versions
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Aug 30 11:57:36 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14894
--- Comment #6 from Martin Nowak <code at 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.
--
More information about the Digitalmars-d-bugs
mailing list