[Issue 14485] .front of empty filtered zip range is accessible
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 23 20:50:10 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14485
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |issues.dlang at jmdavisProg.co
| |m
--- Comment #1 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
It should probably throw a RangeError so the problem is more easily caught, but
technically, calling front on an empty range is undefined behavior. There's no
requirement or guarantee that calling front on an empty range throw.
--
More information about the Digitalmars-d-bugs
mailing list