ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / concepts / pr93729.C
blob7397edb311d95664c8aa990dd13073f310728d1c
1 // { dg-do compile { target c++2a } }
3 // PR c++/93729
5 struct B
7   int a:4;
8   int b:4;
9 };
11 template<typename T>
12 concept c1
13   = requires(T x, void(f)(int &)) { f(x.a); }; // { dg-bogus "cannot bind" }
15 static_assert(!c1<B>);