-
-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
Hello. I try build this simple example:
import core.stdc.stdio;
import std.algorithm : min;
extern (C) void main()
{
char[256] buf;
buf[] = '\0';
auto str = "hello world";
auto ln = min(buf.length, str.length);
buf[0..ln] = str[0..ln];
printf("%s\n", buf.ptr);
}ldc2 -betterC bettercarray2.d
And I get error:
bettercarray2.o: In function `main':
bettercarray2.d:(.text.main[main]+0xd0): undefined reference to `_d_array_slice_copy'
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1
On dmd 2.076.1 I have same problem, but it solves by -noboundscheck flag.
If I try -boundscheck=off on ldc2 I have no effect.
ldc2 version is 1.6.0-beta1 (prebuild for linux x86_64)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels