<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - deprecated warning for implicit copy constructor doesn't notice the destructor is defaulted"
   href="http://llvm.org/bugs/show_bug.cgi?id=19123">19123</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>deprecated warning for implicit copy constructor doesn't notice the destructor is defaulted
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peter@stairways.com.au
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I love the new implicit copy constructor warning, but it seems it is
overzealous about what constitutes a user-declared destructor.  For example

class EnumIterator
{
public:
    EnumIterator() = default;
    ~EnumIterator() = default;
};

static void E()
{
    EnumIterator a;
    EnumIterator b;
    b = a;
}

Results in the error:

error: definition of implicit copy assignment operator for 'EnumIterator' is
deprecated because it has a user-declared destructor [-Werror,-Wdeprecated]
        ~EnumIterator() = default;
        ^
note: implicit copy assignment operator for 'EnumIterator' first required here
        b = a;

But clearly, despite technically being user-declared, it is user-decalred to be
the default, which I would think is functionally equivalent to the non-user
declared case.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>