[Issue 19835] New: std.algorithm.mutation.copy static array source argument broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 28 06:08:11 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19835
Issue ID: 19835
Summary: std.algorithm.mutation.copy static array source
argument broken
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: feklushkin.denis at gmail.com
import std.algorithm.mutation;
void main()
{
ubyte[2] a = [ 1, 5 ];
ubyte[] buf;
buf.length = 40;
auto rem = a.copy(buf); // worked on 2.085.1, broken in 2.086
}
Error message:
onlineapp.d(10): Error: template std.algorithm.mutation.copy cannot deduce
function from argument types !()(ubyte[2], ubyte[]), candidates are:
/dlang/dmd-beta/linux/bin64/../../src/phobos/std/algorithm/mutation.d(368):
std.algorithm.mutation.copy(SourceRange, TargetRange)(SourceRange source,
TargetRange target) if (isInputRange!SourceRange && isOutputRange!(TargetRange,
ElementType!SourceRange))
--
More information about the Digitalmars-d-bugs
mailing list