Debian Codegraph @

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

raw
1 // PR c++/91525
2 // { dg-do compile { target c++20 } }
3
4 struct X {
5 void operator<<(long);
6 void operator<<(bool);
7 } x;
8 struct B {
9 template <bool = true> operator bool();
10 template <bool = true> requires false operator bool();
11 } b;
12
13 void
14 fn()
15 {
16 x << b;
17 }