https://issues.dlang.org/show_bug.cgi?id=18215
Issue ID: 18215
Summary: std.array.replace throws a range violation if from
range is longer than the array
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: critical
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
---
auto arr = ["aaa.dd", "b"];
arr.replace("aaa.dd", ".");
assert(arr == [".", "b"]);
---
[email protected](2136): Range violation
----------------
??:? _d_arrayboundsp [0x5af019c6]
--