[Issue 19871] Copy constructor rejects valid code if default construction is disabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 14 15:02:38 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19871

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
The correct behavior here should be an error that you cannot define both the
rvalue constructor and the lvalue constructor (copy constructor). For more
information, see: https://github.com/dlang/dmd/pull/8688#discussion_r248601249

--


More information about the Digitalmars-d-bugs mailing list