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: nob...@puremagic.com
        ReportedBy: and...@metalanguage.com


--- Comment #0 from Andrei Alexandrescu <and...@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: -------

Reply via email to