ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Fix glibc assert: __assert -> __assert_fail

Open Connor-GH opened this issue 1 year ago • 3 comments

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

Connor-GH avatar May 22 '24 10:05 Connor-GH

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

Connor-GH avatar May 22 '24 10:05 Connor-GH

Is there an upstream test for this?

kinke avatar May 23 '24 11:05 kinke

No there is not

thewilsonator avatar May 23 '24 11:05 thewilsonator