aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction101.C
blob: 379eb960da6bf944a267655b5162a935ac5430d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/91911
// { dg-do compile { target c++17 } }

template<class T>
struct span {
  using value_type = T;
  span(T);
};

template<class T>
using SpanType = decltype(span{T()});

template<class T>
using ConstSpanType = span<const typename SpanType<T>::value_type>;

using type = ConstSpanType<int>;
using type = span<const int>;