Debian Codegraph @

gcc/testsuite/g++.dg/concepts/pr93729.C

raw
1 // { dg-do compile { target c++2a } }
2
3 // PR c++/93729
4
5 struct B
6 {
7 int a:4;
8 int b:4;
9 };
10
11 template<typename T>
12 concept c1
13 = requires(T x, void(f)(int &)) { f(x.a); }; // { dg-bogus "cannot bind" }
14
15 static_assert(!c1<B>);