Bug 22146 – std.algorithm.searching.findAdjacent() can fall off end of function
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-26T04:00:33Z
Last change time
2021-07-26T14:37:49Z
Keywords
pull
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2021-07-26T04:00:33Z
with:
std/algorithm/searching.d(2620): Error: function `std.algorithm.searching.findAdjacent!("a == b", Repeat!int).findAdjacent` no `return exp;` or `assert(0);` at end of function
std/algorithm/searching.d(2671): Error: template instance `std.algorithm.searching.findAdjacent!("a == b", Repeat!int)` error instantiating
Comment #1 by dlang-bot — 2021-07-26T04:04:21Z
@WalterBright created dlang/phobos pull request #8180 "fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off…" fixing this issue:
- fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off end of function
https://github.com/dlang/phobos/pull/8180
Comment #2 by dlang-bot — 2021-07-26T14:37:49Z
dlang/phobos pull request #8180 "fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off…" was merged into master:
- 48e56ed51be91295955ca7ef4358951d64f309b0 by Walter Bright:
fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off end of function
https://github.com/dlang/phobos/pull/8180