1 2 3 4 5 6 7
// PR c++/98644 // { dg-do compile { target c++20 } } template<class T> concept Signed = bool(T(1)); // { dg-error "reinterpret_cast" } static_assert(Signed<int*>); // { dg-error "non-constant" } constexpr bool B = requires { requires bool((char *)1); }; // { dg-error "reinterpret_cast" }