diff --git a/libcxx/include/__bit_reference b/libcxx/include/__bit_reference --- a/libcxx/include/__bit_reference +++ b/libcxx/include/__bit_reference @@ -1132,10 +1132,13 @@ __bit_iterator(__type_for_abi_non_trivial_copy_ctor const& __it) _NOEXCEPT : __seg_(__it.__seg_), __ctz_(__it.__ctz_) {} - // Always declare the copy assignment operator since the implicit declaration - // is deprecated. _LIBCPP_INLINE_VISIBILITY - __bit_iterator& operator=(__bit_iterator const&) = default; + __bit_iterator& operator=(__bit_iterator const& __it) _NOEXCEPT + { + __seg_ = __it.__seg_; + __ctz_ = __it.__ctz_; + return *this; + } _LIBCPP_INLINE_VISIBILITY reference operator*() const _NOEXCEPT {return reference(__seg_, __storage_type(1) << __ctz_);} diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py --- a/libcxx/utils/libcxx/test/params.py +++ b/libcxx/utils/libcxx/test/params.py @@ -13,7 +13,6 @@ '-Werror', '-Wall', '-Wextra', - '-Wno-deprecated-copy', '-Wshadow', '-Wundef', '-Wno-unused-command-line-argument',