← Back to index
|
Original Bugzilla link
Bug 18215 – std.array.replace throws a range violation if the from range is longer than the array
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-01-09T06:30:21Z
Last change time
2018-01-09T20:58:20Z
Assigned to
No Owner
Creator
Seb
Comments
Comment #0
by greensunny12 — 2018-01-09T06:30:21Z
--- auto arr = ["aaa.dd", "b"]; arr.replace("aaa.dd", "."); assert(arr == [".", "b"]); ---
[email protected]
(2136): Range violation ---------------- ??:? _d_arrayboundsp [0x5af019c6]
Comment #1
by github-bugzilla — 2018-01-09T18:46:51Z
Commits pushed to stable at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/7c0dab8d121a34ae73f467cf7aa9be9d306b4fea
Fix Issue 18215 - std.array.replace throws a range violation if the from range is longer than the array
https://github.com/dlang/phobos/commit/aeb7b9b69e06f280c269721c427f3242e5507562
Merge pull request #6017 from wilzbach/fix-18215 Fix Issue 18215 - std.array.replace throws a range violation if the from range is longer than the array merged-on-behalf-of: H. S. Teoh <
[email protected]
>
Comment #2
by github-bugzilla — 2018-01-09T20:58:20Z
Commits pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/7c0dab8d121a34ae73f467cf7aa9be9d306b4fea
Fix Issue 18215 - std.array.replace throws a range violation if the from range is longer than the array
https://github.com/dlang/phobos/commit/aeb7b9b69e06f280c269721c427f3242e5507562
Merge pull request #6017 from wilzbach/fix-18215