Debian Codegraph @

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

raw
1 // PR c++/108579
2 // { dg-do compile { target c++20 } }
3
4 template<class T>
5 struct A {
6 A(double, char);
7 A(int) requires requires { A(0.0, 'c'); };
8 A& operator=(int) requires requires { A(1.0, 'd'); };
9 };
10
11 int main() {
12 A<int> a(3);
13 a = 5;
14 }