[Issue 3835] ref foreach does not work in CTFE

2015-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3835 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.040 |D2 --

[Issue 3835] ref foreach does not work in CTFE

2011-04-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3835 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3835] ref foreach does not work in CTFE

2011-02-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3835 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||wrong-code --- Comment #12

[Issue 3835] ref foreach does not work in CTFE

2011-02-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3835 klickverbot c...@klickverbot.at changed: What|Removed |Added CC||c...@klickverbot.at

[Issue 3835] ref foreach does not work in CTFE

2010-04-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3835 --- Comment #9 from bearophile_h...@eml.cc 2010-04-10 16:19:46 PDT --- In dmd 2.043 my second tests cases works: import std.stdio: writeln; pure int[] genFactorials(int n) { pure static int factorial(int n) { if (n == 0)

[Issue 3835] ref foreach does not work in CTFE

2010-04-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3835 --- Comment #10 from bearophile_h...@eml.cc 2010-04-10 16:27:42 PDT --- A reduced test case: int foo() { int[1] arr; foreach (ref el; arr) el = 10; return arr[0]; } enum int r = foo(); void main() { assert(r == 10); }

[Issue 3835] ref foreach does not work in CTFE

2010-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3835 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||rejects-valid