[PATCH] D45128: [libcxx][test] Silence -Wself-assign diagnostics
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 31 14:17:40 PDT 2018
lebedev.ri added inline comments.
================
Comment at: test/std/language.support/support.types/byteops/and.assign.pass.cpp:30
- static_assert(noexcept(b &= b), "" );
+ static_assert(noexcept(b &= (std::byte &)b), "" );
----------------
EricWF wrote:
> Should Clang really be warning when the expression is in an unevaluated context?
At least that is what it currently already does:
https://godbolt.org/g/RpcgBi
Repository:
rCXX libc++
https://reviews.llvm.org/D45128
More information about the cfe-commits
mailing list