PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr39425.C
blobd55f547e25350a3eb8edc959a275f8d367b4a4df
1 // PR c++/39425
2 // { dg-do compile }
4 class a {
6   template<unsigned int s>
7     struct _rec {
8       static const char size = _rec< (s >> 1) >::size;
9     };
11   template<>    // { dg-error "explicit" }
12   struct _rec <0> {
13     static const char size = 0;
14   };
16   static const unsigned int value = _rec < 1 >::size;
18 } // { dg-error "after class definition" }