[Issue 12928] New: Range check dropped for array[length]
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jun 15 19:22:10 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12928
Issue ID: 12928
Summary: Range check dropped for array[length]
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: lio+bugzilla at lunesu.com
Index expression with [length] is not valid and should through a Range
violation exception, but this is not the case.
void main(string[] args)
{
int[2] a;
foreach(const i; 0..3)
a[i] = i;
}
--
More information about the Digitalmars-d-bugs
mailing list