dmd icon indicating copy to clipboard operation
dmd copied to clipboard

Fix assert; arguments were in reverse order

Open Connor-GH opened this issue 9 months ago • 10 comments

So sometime between glibc 2.35 and glibc 2.38, assert for betterC stopped working. After a wild goosechase, it was determined that not only was the wrong function being called ("__assert" instead of "__assert_fail"), but the arguments were being passed to el_bin backwards! The fix for this is obviously to fix the order of the arguments, and this is reflected in the generated code. Musl was untested for this, but the fix should not affect otherwise working musl systems due to version(CRuntime_Musl).

Connor-GH avatar May 20 '24 23:05 Connor-GH