www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24428] New: unresolved external symbol

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

          Issue ID: 24428
           Summary: unresolved external symbol
                    _D4core8internal5newaa3Foo6__initZ, etc during
                    unittest builds
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: elpenguino+D gmail.com

Compile with -unittest. Fails as of DMD 2.107.1.
```
immutable int[int] foo = [1:2];
unittest {}
void main() {}
```
Several symbols for the unittest in core.internal.newaa are missing:
_D4core8internal5newaa__T5EntryTSQBfQBdQx3FooTiZQx6__initZ
_D4core8internal5newaa3Foo6__initZ
_D4core8internal5newaa3Foo9__xtoHashFNbNeKxSQBqQBoQBiQBfZm
_D4core8internal5newaa3Foo11__xopEqualsMxFKxSQBrQBpQBjQBgZb

Yet another instance of symbols missing due to mismatched app/druntime flags.

--
Mar 03