[Issue 6659] Destructor in range foreach called after initialization
http://d.puremagic.com/issues/show_bug.cgi?id=6659 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6659] Destructor in range foreach called after initialization
http://d.puremagic.com/issues/show_bug.cgi?id=6659 --- Comment #3 from github-bugzi...@puremagic.com 2012-03-28 21:42:31 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b5aa4bc4cdb52ed6996e0afab9368fa6d0ae5934 Merge pull request #826 from 9rnsr/fix6659 fix Issue 6659 - Destructor in range foreach called after initialization -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6659] Destructor in range foreach called after initialization
http://d.puremagic.com/issues/show_bug.cgi?id=6659 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #2 from Kenji Hara 2012-03-23 06:04:47 PDT --- https://github.com/D-Programming-Language/dmd/pull/826 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6659] Destructor in range foreach called after initialization
http://d.puremagic.com/issues/show_bug.cgi?id=6659 Kenji Hara changed: What|Removed |Added Keywords||wrong-code Platform|Other |All OS/Version|FreeBSD |All Severity|normal |major --- Comment #1 from Kenji Hara 2012-03-23 05:52:32 PDT --- A foreach range statement: foreach (iter; lower .. upper) {} is always translated to a for statement: for (auto iter = lower, limit = upper; iter != upper; ++iter) {} So, this is a lifetime issue declared in for statement Initialize part. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---