PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / defarg16.C
blobba78bfbd5a33c3c51f722e5ebb0adbd4633be421
1 // PR c++/55127
3 struct some_class
5   static const bool     is_valid_type = true;
6 };
8 template< typename Type
9         , bool Valid = Type::is_valid_type
11 struct wrapper;
13 template< typename Type >
14 struct wrapper< Type, true >
16   typedef Type type;
19 template< typename T >
20 void fun()
22   wrapper<some_class>::type x;
25 int main()
27   fun<int>();