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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 18:08:56 UTC 2019


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

          Issue ID: 19937
           Summary: object._d_assert_fail linker error if compiling with
                    -checkaction=context
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: zorael at gmail.com

import std.stdio;
import std.json;

void main()
{
    auto j = parseJSON(`[ "abc", "def", "ghi" ]`);
}


$ dmd -checkaction=context checkaction.d
/usr/bin/ld: c.o: in function
`_D3std3uni__T4TrieTSQsQq__T9BitPackedTbVmi1ZQrTwVmi1114112TSQCgQCf__T9sliceBitsVmi13Vmi21ZQvTSQDoQDn__TQBiVmi8Vmi13ZQBvTSQEpQEo__TQCjVmi0Vmi8ZQCvZQFd__T7opIndexZQjMxFNaNbNiNewZb':
checkaction.d:(.text._D3std3uni__T4TrieTSQsQq__T9BitPackedTbVmi1ZQrTwVmi1114112TSQCgQCf__T9sliceBitsVmi13Vmi21ZQvTSQDoQDn__TQBiVmi8Vmi13ZQBvTSQEpQEo__TQCjVmi0Vmi8ZQCvZQFd__T7opIndexZQjMxFNaNbNiNewZb[_D3std3uni__T4TrieTSQsQq__T9BitPackedTbVmi1ZQrTwVmi1114112TSQCgQCf__T9sliceBitsVmi13Vmi21ZQvTSQDoQDn__TQBiVmi8Vmi13ZQBvTSQEpQEo__TQCjVmi0Vmi8ZQCvZQFd__T7opIndexZQjMxFNaNbNiNewZb]+0x52):
undefined reference to
`_D6object__T14_d_assert_failVAyaa1_3cTmTmZQBeFNaNbNiNfmmZQBc'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1

demangles to pure nothrow @nogc @safe immutable(char)[]
object._d_assert_fail!("<", ulong, ulong)._d_assert_fail(ulong, ulong)

--


More information about the Digitalmars-d-bugs mailing list