[Issue 8498] modifying foreach range iterator fails in CTFE

2012-11-02 Thread d-bugmail
/b52dca5a53def60352dbcbf4f398c10abb2cb6b1 Fix issue 8498 modifying foreach range iterator fails in CTFE This was caused by ignoring assignment to ref variables. (These guys can only be created by the inliner, or by lowering, such as happens in foreach). Also fixes bug 7658: assignment to ref in foreach. Also fixes bug 8539: nested

[Issue 8498] modifying foreach range iterator fails in CTFE

2012-11-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8498 yebblies yebbl...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8498] modifying foreach range iterator fails in CTFE

2012-09-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8498 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||CTFE, wrong-code

[Issue 8498] modifying foreach range iterator fails in CTFE

2012-09-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8498 --- Comment #2 from timon.g...@gmx.ch 2012-09-03 08:09:07 PDT --- (In reply to comment #1) Here's a reduced test case. There are 10 iterations, even though the iteration variable is changed. int fun(){ int r=0; foreach(i;0..10) {

[Issue 8498] modifying foreach range iterator fails in CTFE

2012-09-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8498 timon.g...@gmx.ch changed: What|Removed |Added CC||philippe.sig...@gmail.com ---