blob: 05959a8972c89a26625bfc6b41d3cd24dca991bc [file] [log] [blame]
// PR c++/96164
// { dg-do compile { target concepts } }
template <int N>
struct A {
void f() requires (N == 3) { static_assert(N == 3); }
};
template struct A<2>;
template <int N>
struct B {
void f() requires (N == 2) { static_assert(N == 3); } // { dg-error "assert" }
};
template struct B<2>;