[libcxx-commits] [PATCH] D71096: __bit_reference: fix -Wdeprecated-copy warnings

Fangrui Song via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 12 10:05:33 PST 2019


MaskRay added a comment.

In D71096#1781892 <https://reviews.llvm.org/D71096#1781892>, @mclow.lists wrote:

> Is this related to https://bugs.llvm.org/show_bug.cgi?id=44145 ?


Yes. It fixes the warnings, when I run `ninja all` with a latest clang. Thankfully there are not too many `#include <bitset>` in the llvm code base, so the warnings are not overwhelming.

  /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);}


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71096/new/

https://reviews.llvm.org/D71096





More information about the libcxx-commits mailing list