digitalmars.D.bugs - [Issue 2937] New: postblit not called for foreach arg over array of structs
- d-bugmail puremagic.com (29/29) May 04 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2937
- d-bugmail puremagic.com (6/6) May 04 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2937
- d-bugmail puremagic.com (8/8) May 06 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2937
- d-bugmail puremagic.com (12/12) Sep 03 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2937
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 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 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 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