Index: test/std/language.support/support.types/byteops/and.assign.pass.cpp =================================================================== --- test/std/language.support/support.types/byteops/and.assign.pass.cpp +++ test/std/language.support/support.types/byteops/and.assign.pass.cpp @@ -27,7 +27,7 @@ constexpr std::byte b8{static_cast(8)}; constexpr std::byte b9{static_cast(9)}; - static_assert(noexcept(b &= b), "" ); + static_assert(noexcept(b &= (std::byte &)b), "" ); static_assert(std::to_integer(test(b1, b8)) == 0, ""); static_assert(std::to_integer(test(b1, b9)) == 1, ""); Index: test/std/language.support/support.types/byteops/or.assign.pass.cpp =================================================================== --- test/std/language.support/support.types/byteops/or.assign.pass.cpp +++ test/std/language.support/support.types/byteops/or.assign.pass.cpp @@ -27,7 +27,7 @@ constexpr std::byte b2{static_cast(2)}; constexpr std::byte b8{static_cast(8)}; - static_assert(noexcept(b |= b), "" ); + static_assert(noexcept(b |= (std::byte &)b), "" ); static_assert(std::to_integer(test(b1, b2)) == 3, ""); static_assert(std::to_integer(test(b1, b8)) == 9, ""); Index: test/std/language.support/support.types/byteops/xor.assign.pass.cpp =================================================================== --- test/std/language.support/support.types/byteops/xor.assign.pass.cpp +++ test/std/language.support/support.types/byteops/xor.assign.pass.cpp @@ -27,7 +27,7 @@ constexpr std::byte b8{static_cast(8)}; constexpr std::byte b9{static_cast(9)}; - static_assert(noexcept(b ^= b), "" ); + static_assert(noexcept(b ^= (std::byte &)b), "" ); static_assert(std::to_integer(test(b1, b8)) == 9, ""); static_assert(std::to_integer(test(b1, b9)) == 8, ""); Index: test/std/utilities/any/any.class/any.assign/copy.pass.cpp =================================================================== --- test/std/utilities/any/any.class/any.assign/copy.pass.cpp +++ test/std/utilities/any/any.class/any.assign/copy.pass.cpp @@ -102,7 +102,7 @@ // empty { any a; - a = a; + a = (any &)a; assertEmpty(a); assert(globalMemCounter.checkOutstandingNewEq(0)); } @@ -112,7 +112,7 @@ any a((small(1))); assert(small::count == 1); - a = a; + a = (any &)a; assert(small::count == 1); assertContains(a, 1); @@ -125,7 +125,7 @@ any a(large(1)); assert(large::count == 1); - a = a; + a = (any &)a; assert(large::count == 1); assertContains(a, 1); Index: test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp =================================================================== --- test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp +++ test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp @@ -92,28 +92,28 @@ { typedef std::function Func; Func f = g0; - Func& fr = (f = f); + Func& fr = (f = (Func &)f); assert(&fr == &f); assert(*f.target() == g0); } { typedef std::function Func; Func f = g; - Func& fr = (f = f); + Func& fr = (f = (Func &)f); assert(&fr == &f); assert(*f.target() == g); } { typedef std::function Func; Func f = g2; - Func& fr = (f = f); + Func& fr = (f = (Func &)f); assert(&fr == &f); assert(*f.target() == g2); } { typedef std::function Func; Func f = g3; - Func& fr = (f = f); + Func& fr = (f = (Func &)f); assert(&fr == &f); assert(*f.target() == g3); }