[Bug c++/117727] __builtin_bit_cast with target type nullptr_t unimplemented
tbaeder at redhat dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 21 17:56:01 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117727
--- Comment #4 from Timm Bäder <tbaeder at redhat dot com> ---
(In reply to Jakub Jelinek from comment #2)
> I thought all the bits of the type are padding bits (given that reads of
> std::nullptr_t typed objects just don't read any of the bits and simply
> result in nullptr).
Is this (all bits if a nullptr_t being padding bits) in the spec or are you
referring to gcc's implementation?
(In reply to Andrew Pinski from comment #3)
> So in summary all 3 compilers have different behavior.
FWIW I opened https://github.com/llvm/llvm-project/issues/117166 on the clang
side.
More information about the Gcc-bugs
mailing list