[Issue 4437] New: copy construction bug with "return this;"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 7 15:55:39 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4437
Summary: copy construction bug with "return this;"
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrei at metalanguage.com
--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-07-07 15:55:37 PDT ---
To reproduce, run this on Linux from the Phobos dir (after I'll check
std.container in):
make unittest BUILD=debug DMDEXTRAFLAGS="-debug=RefCounted -version=bugxxxx"
where xxxx is the number of this bug. Basically in a range containing a type
with an elaborate copy constructor, this works:
Range save() { auto copy = this; return copy; }
but this doesn't:
Range save() { return this; }
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list