[llvm-bugs] [Bug 44145] New: libcxx fails with -Wdeprecated-copy

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 25 13:43:22 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=44145

            Bug ID: 44145
           Summary: libcxx fails with -Wdeprecated-copy
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.bolvansky at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

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:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/24606/steps/bootstrap%20clang/logs/stdio


Please fix, so we can re-enable -Wdeprecated-copy under -Wextra again.

-- 
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/20191125/330cb1dc/attachment.html>


More information about the llvm-bugs mailing list