PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / pr71057.C
blob0bd546a74e8ac0dd2243f6b28ad5385aa086048d
1 // { dg-do compile }
2 // { dg-options "-g" }
3 template <typename _Tp> using decay_t = _Tp;
4 template <typename> struct A;
5 template <typename> struct B { B(A<int>); };
6 template <typename> struct C {
7       template <typename U> using constructor = B<decay_t<U>>;
8         typedef constructor<int> dummy;
9 };
10 template <typename> struct D {};
11 C<int> a;
12 D<B<int>> fn1() { fn1, a; return D<B<int>>(); }