← Back to index
|
Original Bugzilla link
Bug 9350 – std.algorithm.findAdjacent unreachable code warning with infinite ranges
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-18T10:12:00Z
Last change time
2013-02-11T23:13:48Z
Assigned to
nobody
Creator
peter.alexander.au
Comments
Comment #0
by peter.alexander.au — 2013-01-18T10:12:34Z
import std.algorithm; import std.range; void main() { assert(!repeat(1).findAdjacent().empty); } -------- $ dmd -w bug.d std/algorithm.d(5178): Warning: statement is not reachable
Comment #1
by github-bugzilla — 2013-01-18T15:34:59Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/e7ccc0d45ea242945e20137d3fac8b3f2a51fe76
Issue 9350 - findAdjacent infinite range warning Fix Issue 9350
http://d.puremagic.com/issues/show_bug.cgi?id=9350
https://github.com/D-Programming-Language/phobos/commit/28b61cf68d4b4238495322b5aca6dded48a4c14c
Added unittest for Issue 9350.
https://github.com/D-Programming-Language/phobos/commit/191241ff1a0137479a660d03be7ebb874c1d7a61
Merge pull request #1078 from Poita/bug9350 Issue 9350 - findAdjacent unreachable code warning with infinite ranges
Comment #2
by github-bugzilla — 2013-02-11T23:13:48Z
Commits pushed to
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/e7ccc0d45ea242945e20137d3fac8b3f2a51fe76
Issue 9350 - findAdjacent infinite range warning
https://github.com/D-Programming-Language/phobos/commit/28b61cf68d4b4238495322b5aca6dded48a4c14c
Added unittest for Issue 9350.
https://github.com/D-Programming-Language/phobos/commit/191241ff1a0137479a660d03be7ebb874c1d7a61
Merge pull request #1078 from Poita/bug9350