https://issues.dlang.org/show_bug.cgi?id=14485
Issue ID: 14485
Summary: .front of empty filtered zip range is accessible
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
This program should throw, but doesn't:
////////////////////////// test.d /////////////////////////
import std.algorithm;
import std.range;
import std.stdio;
void main()
{
writeln(zip(5.iota, 5.iota).filter!(n => false).front);
}
///////////////////////////////////////////////////////////
--