https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104859
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Oops, sorry, there is template<typename T, typename = std::enable_if_t<std::is_integral_v<T>>> constexpr explicit operator T() const { static_assert(sizeof(T) <= sizeof(uint64_t)); return static_cast<T>(lo); } but it is explicit so an explicit cast is needed.