Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/class-deduction-alias24.C

raw
1 // PR c++/119379
2 // { dg-do compile { target c++20 } }
3
4 template<class T, class U>
5 struct pair {
6 pair(T, U);
7 };
8
9 template<class T>
10 struct S {
11 template<class U> requires true
12 using P = pair<T, U>;
13 };
14
15 using type = decltype(S<int>::P(1, 2));
16 using type = S<int>::P<int>;