Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr98644.C

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