[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
Fri May 14 13:10:21 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50344
Eli Friedman <efriedma at quicinc.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
CC| |efriedma at quicinc.com
Status|NEW |RESOLVED
--- Comment #1 from Eli Friedman <efriedma at quicinc.com> ---
I think you're misinterpreting "only the copy constructor is provided".
There's a difference between a class that doesn't have a move constructor, and
one that has an explicitly deleted move constructor. A class with a deleted
move constructor has a move constructor. The compiler doesn't check whether a
constructor is deleted until after it decides which constructor to use.
--
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/20210514/a0d0cf61/attachment.html>
More information about the llvm-bugs
mailing list