digitalmars.D.bugs - [Issue 8045] New: Postblit should be called on function call initilalizer that returns ref
- d-bugmail puremagic.com (35/35) May 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8045
- d-bugmail puremagic.com (13/13) May 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8045
- d-bugmail puremagic.com (13/19) May 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8045
http://d.puremagic.com/issues/show_bug.cgi?id=8045 Summary: Postblit should be called on function call initilalizer that returns ref Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com --- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2012-05-04 22:17:26 PDT --- void main() { struct S { int a; this(this) { ++a; } } ref S f(ref S s) { return s; } S s1 = S(10); S s2 = f(s1); // postblit should be called, but doesn't assert(s2.a == 11); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 04 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8045 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com --- Comment #1 from SomeDude <lovelydear mailmetrash.com> 2012-05-04 22:58:59 PDT --- Isn't this a duplicate of issue 5737 and issue 6199 ? There are currently 12 open bugs concerning postblit. I suspect some are duplicates, but I'm not sure which. http://d.puremagic.com/issues/buglist.cgi?query_format=advanced&chfield=resolution&short_desc=Postblit&chfieldvalue=FIXED&bug_severity=regression&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&version=D2&short_desc_type=allwordssubstr&component=DMD&component=druntime&component=Phobos&resolution=---&product=D -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 04 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8045 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2012-05-04 23:30:37 PDT --- (In reply to comment #1)Isn't this a duplicate of issue 5737 and issue 6199 ? There are currently 12 open bugs concerning postblit. I suspect some are duplicates, but I'm not sure which. http://d.puremagic.com/issues/buglist.cgi?query_format=advanced&chfield=resolution&short_desc=Postblit&chfieldvalue=FIXED&bug_severity=regression&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&version=D2&short_desc_type=allwordssubstr&component=DMD&component=druntime&component=Phobos&resolution=---&product=DThanks. You are right. I'll mark this as a dup of issue 5737. *** This issue has been marked as a duplicate of issue 5737 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 04 2012