aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-pr98644.C
blob: 6772f72a3ce8cf7d82d99de7e5449871110068fa (plain)
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" }