[LLVMbugs] [Bug 15190] New: Improve diagnostics for deprecated copy constructors and copy assignments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 6 14:56:41 PST 2013


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: unassignedclangbugs at nondot.org
          Reporter: aaron at aaronballman.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130206/a97b63e3/attachment.html>


More information about the llvm-bugs mailing list