May 31, 2023
https://issues.dlang.org/show_bug.cgi?id=23949

          Issue ID: 23949
           Summary: core.stdc.assert_ for FreeBSD is incorrect
           Product: D
           Version: D2
          Hardware: x86_64
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody@puremagic.com
          Reporter: mail@ernestocastellotti.it

The __assert function prototype in core.stdc.assert_ is incorrect for FreeBSD. Currently on D is:

noreturn __assert(const(char)* exp, const(char)* file, uint line);

But according to the FreeBSD header it should be:

noreturn __assert(const(char)* fun, const(char)* file, uint line, const(char)*
exp);

--