rs6000: Relax some FLOAT128 expander condition for FLOAT128_IEEE_P [PR105359]
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr39425.C
blobcd304896a616cba160c77bdd6cc172aa7543aef2
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; // { dg-error "depth" }
9     };
11   template<>    // { dg-error "explicit" }
12   struct _rec <0> { // { dg-error "too few" }
13     static const char size = 0;
14   };
16   static const unsigned int value = _rec < 1 >::size;
20 // { dg-prune-output "compilation terminated" }