ldc
ldc copied to clipboard
Fix glibc assert: __assert -> __assert_fail
ldc2 returns SIGSEGV instead of SIGABRT for any value of assert in betterC (or -checkaction=C or defaultlib="" ...) due to some improper usage of __assert. As per the C compilers, (gcc, clang, etc.), __assert_fail should be used for C asserts.
See my related PR for DMD:
https://github.com/dlang/dmd/pull/16515
https://issues.dlang.org/show_bug.cgi?id=24558
Is there an upstream test for this?
No there is not