PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-template2.C
blob0df0d4e89c3b1191ebc1e98c02e0b25bb669bec6
1 // PR c++/71747
2 // { dg-do compile { target c++11 } }
4 template < bool > struct A
6   typedef int type; 
7   constexpr bool operator() () const 
8   { 
9     return true; 
10   }
11 }; 
13 template < bool, typename = int > struct F; 
14 template < bool X > 
15 // should be: struct F < X, typename A < A < X > {} () >::type > 
16 struct F < X, typename A < F < X > {} () >::type >
20 F < true > f;                   // { dg-error "" }