digitalmars.D.bugs - [Issue 2937] New: postblit not called for foreach arg over array of structs
- d-bugmail puremagic.com May 04 2009
- d-bugmail puremagic.com May 04 2009
- d-bugmail puremagic.com May 06 2009
- d-bugmail puremagic.com Sep 03 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2937 Summary: postblit not called for foreach arg over array of structs Product: D Version: 2.029 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: cristian zerobugs.org The assertion fails in the following program (I was able to fix it in my back-end for .NET but it is probably best for a fix to go into the front-end). struct X { int i; this(this) { ++i; } } void main() { X [1] xs; xs[0] = X(); foreach(x; xs) { assert(x.i == 1); } } --
May 04 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2937 ------- Comment #1 from cristian zerobugs.org 2009-05-04 23:25 ------- Created an attachment (id=349) --> (http://d.puremagic.com/issues/attachment.cgi?id=349&action=view) test case --
May 04 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2937 gide nwawudu.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code ------- Comment #2 from gide nwawudu.com 2009-05-06 03:35 ------- Similar to BUG 2674. --
May 06 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2937 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2009-09-03 13:36:16 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 03 2009









d-bugmail puremagic.com 