aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-pr80773.C
blob: a39977ece3c207e85635cfd601ada7f192f16fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// { dg-do compile { target c++20 } }
// { dg-additional-options "-fconcepts" }

template<typename F>
concept FCallable =
  requires(F)
  {
    F::f();
  };


class Test1
{
public:
  template<FCallable P, FCallable... Pp>
  static void g()
  {
    (Pp::f(), ...);
  }
};

class A
{
public:
  static void f() {}
};

int main()
{
  Test1::template g<A>();
}