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
Comment #2 by github-bugzilla — 2013-02-11T23:13:48Z