================
@@ -28,9 +28,11 @@ static_assert(sizeof(long long) == 8);
template <class To, class From>
constexpr To bit_cast(const From &from) {
static_assert(sizeof(To) == sizeof(From));
- // expected-note@+9 {{cannot be represented in type 'bool'}}
+ // expected-note@+11 {{cannot be represented in type 'bool'}}
#ifdef __x86_64
- // expected-note@+7 {{or 'std::byte'; '__int128' is invalid}}
+ // expected-note@+9 {{or 'std::byte'; '__int128' is invalid}}
+ // expected-warning@+8 {{from 'const long double' to '__int128' is always
undefined because it unconditionally maps a padding bit onto a non-padding bit}}
+ // expected-warning@+7 {{from 'const pad' to 'no_pad' is always undefined
because it unconditionally maps a padding bit onto a non-padding bit}}
----------------
cor3ntin wrote:
It's pre-existing but I'm not a fan of the ifdefs here, I'd prefer make it a
`-verify=` argument
https://github.com/llvm/llvm-project/pull/200362
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits