[Issue 12934] New: Strange newly implemented VRP behavior on foreach
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 16 07:02:09 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12934
Issue ID: 12934
Summary: Strange newly implemented VRP behavior on foreach
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: k.hara.pg at gmail.com
Example case:
void main()
{
ubyte[128] data;
foreach (const int i; 0..128) data[i] = i; // ok by issue 9570
foreach (const(int) i; 0..128) data[i] = i; // should work, but doesn't
}
--
More information about the Digitalmars-d-bugs
mailing list