<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - libcxx fails with -Wdeprecated-copy"
   href="https://bugs.llvm.org/show_bug.cgi?id=44145">44145</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libcxx fails with -Wdeprecated-copy
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>david.bolvansky@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Santizers are built with libcxx (and sadly, with -Werror). With
-Wdeprecated-copy, any build fails:

/b/sanitizer-x86_64-linux/build/llvm-project/libcxx/include/__bit_reference:66:22:
warning: definition of implicit copy constructor for
'__bit_reference<std::__1::__bitset<0, 0>, true>' is deprecated because it has
a user-declared copy assignment operator [-Wdeprecated-copy]
    __bit_reference& operator=(const __bit_reference& __x) _NOEXCEPT
                     ^
/b/sanitizer-x86_64-linux/build/llvm-project/libcxx/include/bitset:628:17:
note: in implicit copy constructor for
'std::__1::__bit_reference<std::__1::__bitset<0, 0>, true>' first required here
        {return reference(0, 1);}

/b/sanitizer-x86_64-linux/build/llvm-project/libcxx/include/__bit_reference:150:28:
warning: definition of implicit copy constructor for
'__bit_const_reference<std::__1::__bitset<0, 0> >' is deprecated because it has
a user-declared copy assignment operator [-Wdeprecated-copy]
    __bit_const_reference& operator=(const __bit_const_reference& __x);
                           ^
/b/sanitizer-x86_64-linux/build/llvm-project/libcxx/include/bitset:630:17:
note: in implicit copy constructor for
'std::__1::__bit_const_reference<std::__1::__bitset<0, 0> >' first required
here
        {return const_reference(0, 1);}


Log:
<a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/24606/steps/bootstrap%20clang/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/24606/steps/bootstrap%20clang/logs/stdio</a>


Please fix, so we can re-enable -Wdeprecated-copy under -Wextra again.</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>