[llvm-bugs] [Bug 50344] clang 12.0.0 ignores copy constructor and fails to compile seemingly correct code

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 17 05:16:12 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50344

Fedor Kazmin <f.kazmin at corp.mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Fedor Kazmin <f.kazmin at corp.mail.ru> ---
Thank you, Dimitry.
The paper you mentioned has literally same code as an example.
Explicit deletion of move ctor forces the compiler to claim where is no other
way but to move an object.
CPP is amazing :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210517/803a025b/attachment.html>


More information about the llvm-bugs mailing list