[Issue 18868] Separate compilation generates two static this functions, runs it twice

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 28 18:18:20 UTC 2018


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

--- Comment #3 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/849155631cba3017566d3160cf15cb40584abf10
fix Issue 18868 - nondeterministic static ctor/dtor

Instead of using a counter to create unique static ctor and dtor function
identifiers, use the deterministic line+column location that is also used for
unittests.
The further disambiguate mixin instantiations on the exact same location, use a
local counter.

https://github.com/dlang/dmd/commit/cf19b78d47572e1c6d1a79687ea592b051552e93
Merge pull request #8255 from JohanEngelen/fix18868

fix Issue 18868 - nondeterministic static ctor/dtor
merged-on-behalf-of: Jacob Carlborg <jacob-carlborg at users.noreply.github.com>

--


More information about the Digitalmars-d-bugs mailing list