[Issue 19937] object._d_assert_fail linker error if compiling with -checkaction=context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 10 11:32:45 UTC 2020


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

Bastiaan Veelo <Bastiaan at Veelo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Bastiaan at Veelo.net

--- Comment #6 from Bastiaan Veelo <Bastiaan at Veelo.net> ---
Assuming Seb's assessment of phobos being compiled without
`-checkaction=context` is the root cause, here is another test case:

```
import std;
void main()
{
  wchar[] c;
  c.toUTF8;
}
```

Compiling this with `-checkaction=context` produces
```
Error 42: Symbol Undefined
__D4core8internal7dassert__T24miniFormatFakeAttributesTkZQBdFNaNbNiNfKxkZAya
```

The link error vanishes if the argument `-debug` or `-release` is added, or if
the import is changed into `import std.utf;`. This happens for DMD64 D Compiler
v2.091.0-dirty on Windows, couldn't reproduce this on run.dlang.io.

Bastiaan.

--


More information about the Digitalmars-d-bugs mailing list