PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash128.C
blob2682e3dc3ce50a754fd6901f896bf4b03033873f
1 // PR c++/54090
3 template <int n>
4 struct X {
6   template <int N, bool = (n >= N), typename T = void> struct Y;
8   template <int N, typename T>
9   struct Y<N, true, T> {};
11   static const int M = n / 2;
13   template <typename T>
14   struct Y<X::M, true, T> {};
17 void foo() {
18   X<10>::Y<10/2> y;