PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / error45.C
blob064554dfe71f661071a64073e14d8dc2b7cfed01
1 // PR c++/47125
3 template < bool, typename >
4 struct enable_if {};
6 template < typename T >
7 struct enable_if< true, T >
9     typedef T type;
12 template < typename T >
13 struct enable_if< true, T >::type
14 f( T x );                       // { dg-error "not a class type" }
16 void
17 g( void )
19   f< int >( 0 );                // { dg-error "no match" }
22 // { dg-prune-output "note" }