digitalmars.D.bugs - [Issue 19058] New: __traits(getUnitTests) stops working with
- d-bugmail puremagic.com (28/28) Jul 04 2018 https://issues.dlang.org/show_bug.cgi?id=19058
https://issues.dlang.org/show_bug.cgi?id=19058 Issue ID: 19058 Summary: __traits(getUnitTests) stops working with separate compilation in dmd 2.081.0 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: atila.neves gmail.com This is a regression of 16995 caused by: commit 849155631cba3017566d3160cf15cb40584abf10 Author: Johan Engelen <jbc.engelen gmail.com> Date: Thu May 17 00:25:56 2018 +0200 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. The reason the existing test for 16995 didn't break is because it only uses one module with unittests, and there must be two different modules with unittests on the same line:column to trigger the regression. --
Jul 04 2018