Bug 12934 – Strange newly implemented VRP behavior on foreach

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-16T14:02:00Z
Last change time
2014-06-16T18:56:30Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-06-16T14:02:09Z
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 }
Comment #1 by k.hara.pg — 2014-06-16T14:07:46Z
Comment #2 by github-bugzilla — 2014-06-16T18:56:29Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bfc07fc275c25520e26821f542b0260e530df30e fix Issue 12934 - Strange newly implemented VRP behavior on foreach https://github.com/D-Programming-Language/dmd/commit/5cc1c812227440d199f265dec8fb976bea7ad943 Merge pull request #3674 from 9rnsr/fix12934 Issue 12934 - Strange newly implemented VRP behavior on foreach