Debian Codegraph @

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

raw
1 // PR c++/101247
2 // { dg-do compile { target concepts } }
3 // A variant of concepts-memtmpl5.C that uses a partial specialization
4 // of A instead of the primary template.
5
6 template<class, class> struct A;
7
8 template<class T, class U> requires true struct A<T, U> {
9 template<class V> static constexpr bool d = true;
10 static void g() requires d<U>;
11 };
12
13 int main() {
14 A<int, char>::g();
15 }