PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / static20.C
blob6f1096b88eacf92b58fb087d64405748c69d9d25
1 // PR c++/24277
3 template< int Bits > struct uint_t {
4   typedef unsigned short fast;
5 };
6 template < int Bits > struct mask_uint_t {
7   typedef typename uint_t< Bits >::fast fast;
8   static const fast sig_bits = 1;
9   static const fast sig_bits_fast = fast(sig_bits);
11 template < int Bits> int checksum ( ) {
12   return 1 & mask_uint_t<Bits>::sig_bits_fast;
14 int i = checksum<1>();