aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-pr91525.C
blob: 700a1802a2ddbaae9b84a65d4dbfa3964d2ac7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/91525
// { dg-do compile { target c++20 } }

struct X {
  void operator<<(long);
  void operator<<(bool);
} x;
struct B {
  template <bool = true> operator bool();
  template <bool = true> requires false operator bool();
} b;

void
fn()
{
  x << b;
}