http://d.puremagic.com/issues/show_bug.cgi?id=9350
Summary: std.algorithm.findAdjacent unreachable code warning
with infinite ranges
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Peter Alexander <[email protected]> 2013-01-18
10:12:34 PST ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------