aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias24.C
blob: cceddac0359f30b556df45208e728facffaf364f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/119379
// { dg-do compile { target c++20 } }

template<class T, class U>
struct pair {
  pair(T, U);
};

template<class T>
struct S {
  template<class U> requires true
  using P = pair<T, U>;
};

using type = decltype(S<int>::P(1, 2));
using type = S<int>::P<int>;