digitalmars.D.bugs - [Issue 11664] New: A function with a local static variable is unusable in CTFE
- d-bugmail puremagic.com (32/32) Dec 02 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11664
- d-bugmail puremagic.com (11/11) Dec 02 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11664
- d-bugmail puremagic.com (11/11) Dec 03 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11664
- d-bugmail puremagic.com (9/9) Dec 03 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11664
https://d.puremagic.com/issues/show_bug.cgi?id=11664 Summary: A function with a local static variable is unusable in CTFE Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: samukha voliacable.com PST --- int foo() { static x = 1; return 0; } enum y = foo(); Error: Static variable x cannot be modified at compile time The static variable is not modified. Equivalent to: int x_private_to_foo = 1; int foo() { return 0; } enum y = foo(); -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 02 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11664 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |CTFE, pull Version|unspecified |D2 https://github.com/D-Programming-Language/dmd/pull/2917 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 02 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11664 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/cb0c6096e93a9885a269005cd8379a3627112207 fix Issue 11664 - A function with a local static variable is unusable in CTFE https://github.com/D-Programming-Language/dmd/commit/70885936ba13b609df794ab3ead15c24c4afd870 Issue 11664 - A function with a local static variable is unusable in CTFE -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11664 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013