http://llvm.org/bugs/show_bug.cgi?id=15190
Bug ID: 15190
Summary: Improve diagnostics for deprecated copy constructors
and copy assignments
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
[class.copy]p7:
...If the class definition declares a move constructor or move assignment
operator, the implicitly declared copy constructor is defined as deleted;
otherwise, it is defined as defaulted (8.4). The latter case is deprecated if
the class has a user-declared copy assignment operator or a user-declared
destructor.
[class.copy]p18:
...If the class definition declares a move constructor or move assignment
operator, the implicitly declared copy assignment operator is defined as
deleted; otherwise, it is defined as defaulted (8.4). The latter case is
deprecated if the class has a user-declared copy constructor or a user-declared
destructor.
It would be good to provide a diagnostic for this case, but it should be on
*usage*, not on definition (as per the usual form of deprecation).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs