Possibly related to other array `memset` errors already reported before. The following code fails to link with `dmd` but works fine with `ldc2` on: - Void Linux - DMD64 D Compiler v2.101.1 - Args: `-betterC` ``` void fn(T, int N)(const T[N] arr) { } extern (C) void main() { fn([1, 2]); fn([1, 2, 3]); fn([1, 2, 2]); // same size array with different values fails } ``` source/bug.d:(.text.main[main]+0x60): undefined reference to `_memset32'
Works for me with DMD64 D Compiler v2.109.0 on Linux Mint.
I just tested again with DMD64 D Compiler v2.104.2 on Alpine Linux and with DMD64 D Compiler v2.109.1 on Void Linux, they both work. I should have tested with a more recent version first. Sorry about that.
Resolved.