// PR c++/87366 // { dg-do compile { target c++11 } } struct A {}; struct B {}; template struct wrapper {}; template struct enable_if_A { }; template<> struct enable_if_A { using type = void; }; template ::type> using ok_t = T; template void not_even_called(wrapper&> a); template int called(wrapper a); void test(wrapper& val) { called(val); }