https://issues.dlang.org/show_bug.cgi?id=14544
--- Comment #8 from Ketmar Dark <ket...@ketmar.no-ip.org> --- supplemental fix for your PR: diff --git a/std/range/primitives.d b/std/range/primitives.d index 972b709..1e427a4 100644 --- a/std/range/primitives.d +++ b/std/range/primitives.d @@ -908,10 +908,10 @@ template isRandomAccessRange(R) static if(is(typeof(r[$]))) { - static assert(is(typeof(r.front) == typeof(r[$]))); + static assert(is(typeof(f) == typeof(r[$]))); static if(!isInfinite!R) - static assert(is(typeof(r.front) == typeof(r[$ - 1]))); + static assert(is(typeof(f) == typeof(r[$ - 1]))); } })); } --