aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-ctad2.C
blob: 0d7f9790777aec5179dba0b39579ab62807a31ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/98611
// { dg-do compile { target c++20 } }

template <class>
struct S {
  template <class T> struct Tmpl { Tmpl(T); };

  template <class T>
    requires requires (T object) { Tmpl{object}; }
  static int f(T);
};

int a = S<int>::f(0);