[Issue 9350] New: std.algorithm.findAdjacent unreachable code warning with infinite ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 18 10:12:35 PST 2013


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: nobody at puremagic.com
        ReportedBy: peter.alexander.au at gmail.com


--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list