[Issue 16522] New: opIndex broken for single-length Only ranges
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Sep 21 13:42:17 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16522
Issue ID: 16522
Summary: opIndex broken for single-length Only ranges
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: meapineapple at gmail.com
import std.range;
void main(){
auto x = only(1);
x[0]; // ok
x.popFront();
x[0]; // breaks
}
--
More information about the Digitalmars-d-bugs
mailing list