April 10, 2010 [Issue 3835] ref foreach does not work in CTFE | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3835 --- Comment #10 from bearophile_hugs@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); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 06, 2011 [Issue 3835] ref foreach does not work in CTFE | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3835 klickverbot <code@klickverbot.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |code@klickverbot.at --- Comment #11 from klickverbot <code@klickverbot.at> 2011-02-06 14:59:06 PST --- This bug is worse than it might seem from reading the »rejects-valid« keyword – DMD 2.051 happily executes ref foreach during compile-time, but generates wrong results silently. Should we add a »wrong-ctfe« tag or something like that? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2011 [Issue 3835] ref foreach does not work in CTFE | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3835 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #12 from Don <clugdbug@yahoo.com.au> 2011-02-07 00:57:25 PST --- (In reply to comment #11) > This bug is worse than it might seem from reading the »rejects-valid« keyword – DMD 2.051 happily executes ref foreach during compile-time, but generates wrong results silently. > > Should we add a »wrong-ctfe« tag or something like that? No, incorrect CTFE should just be marked as wrong-code. Yup, this one's important. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 09, 2011 [Issue 3835] ref foreach does not work in CTFE | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3835 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from Don <clugdbug@yahoo.com.au> 2011-04-08 21:17:18 PDT --- Fixed. D2: https://github.com/D-Programming-Language/dmd/commit/0219a5f0dcc88076759a4c472582954d0fb804b0 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation