// PR c++/87512 // { dg-do compile { target c++17 } } template using enable_if_t = int; template struct is_pointer { enum { value = 0 }; }; template inline constexpr auto IsPtr = is_pointer::value; class Foo; class Bar; template void foo(T1, T2); template enable_if_t> foo(T, Foo); template <> void foo(Bar, Bar);