aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction-access3.C
blob: 9df94808e86191f295eacfd4e004f61437e14f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile { target c++17 } }

template<class>
struct Cont;

template<class T>
class Base
{
  using type = T;
  friend Cont<T>;
};

template<class T>
struct Cont
{
  using argument_type = typename Base<T>::type;
  Cont(T, argument_type);
};

Cont c(1, 1);