aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/class-deduction-inherited3.C
blob: 57e323b5124f9e47559955939d3d3908bcad4c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile { target c++23 } }

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

template<class T>
struct B : A<const T> {
  using A<const T>::A;
};

using type = decltype(B(0));
using type = decltype(B(0, 0));
using type = B<int>;