aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-memtmpl5a.C
blob: 458f1cdf8562394d67a3a8e62254c968304f5944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/101247
// { dg-do compile { target concepts } }
// A variant of concepts-memtmpl5.C that uses a partial specialization
// of A instead of the primary template.

template<class, class> struct A;

template<class T, class U> requires true struct A<T, U> {
  template<class V> static constexpr bool d = true;
  static void g() requires d<U>;
};

int main() {
  A<int, char>::g();
}