www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: peter.alexander.au gmail.com



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: -------
Jan 18 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9350




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


Issue 9350 - findAdjacent unreachable code warning with infinite ranges

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9350


Alex Rønne Petersen <alex lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex lycus.org
         Resolution|                            |FIXED



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


Issue 9350 - findAdjacent unreachable code warning with infinite ranges

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9350




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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 11 2013