digitalmars.D.bugs - [Issue 4632] New: Copy constructor not invoked on array reallocation
- d-bugmail puremagic.com (37/37) Aug 12 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4632
- d-bugmail puremagic.com (10/10) Sep 20 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4632
- d-bugmail puremagic.com (6/6) Feb 28 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4632
- d-bugmail puremagic.com (12/12) Jul 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4632
http://d.puremagic.com/issues/show_bug.cgi?id=4632 Summary: Copy constructor not invoked on array reallocation Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: druntime AssignedTo: sean invisibleduck.org ReportedBy: rsinfu gmail.com --- Struct copy constructor is not invoked on array copy, expansion nor concatenation; but it should. -------------------- array_cpctor.d void main() { auto ss = new S[](1); auto ssdup = ss.dup; // A copy is created... assert(&ss[0] != &ssdup[0]); // but the copy constructor is not invoked! assert(ssdup[0].copy); // Assertion failure } struct S { bool copy; this(this) { copy = true; } } -------------------- % dmd -run array_cpctor.d core.exception.AssertError array_cpctor(10): Assertion failure -------------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 12 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4632 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |clugdbug yahoo.com.au Severity|normal |major -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 20 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4632 Might be the same as bug 3475 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 28 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4632 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 3475 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 08 2011