www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13621] New: inout issue with std.container.Array opSlice

https://issues.dlang.org/show_bug.cgi?id=13621

          Issue ID: 13621
           Summary: inout issue with std.container.Array opSlice
           Product: D
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
import std.container : Array, BinaryHeap;
alias Heap = BinaryHeap!(Array!int);
CODE

dmd -c bug

----
/home/dawg/Code/D/DPL/dmd/src/../../phobos/std/container/array.d(432): Error:
cannot implicitly convert expression ((inout inout(Range) __ctmp1781 = 0;
 , __ctmp1781).this(this, 0LU, this.length())) of type inout(Range) to Range
bug.d(2):        while looking for match for BinaryHeap!(Array!int)
----

Introduced with https://github.com/D-Programming-Language/phobos/pull/2573.

--
Oct 15 2014