Debian Codegraph @

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

raw
1 // PR c++/98611
2 // { dg-do compile { target c++20 } }
3
4 template <class>
5 struct S {
6 template <class T> struct Tmpl { Tmpl(T); };
7
8 template <class T>
9 requires requires (T object) { Tmpl{object}; }
10 static int f(T);
11 };
12
13 int a = S<int>::f(0);