1// PR c++/47125 2 3template < bool, typename > 4struct enable_if {}; 5 6template < typename T > 7struct enable_if< true, T > 8{ 9 typedef T type; 10}; 11 12template < typename T > 13struct enable_if< true, T >::type 14f( T x ); // { dg-error "not a class type" } 15 16void 17g( void ) 18{ 19 f< int >( 0 ); // { dg-error "no match" } 20} 21 22// { dg-prune-output "note" } 23