// PR c++/65133 // { dg-do compile { target c++11 } } template struct enable_if { }; template struct enable_if { typedef Tp type; }; template struct count { using type = typename count::type; }; template <> struct count<0> { using type = void; }; template auto foo(typename enable_if<(I>=0)>::type * = nullptr) -> typename count::type { } template void foo(typename enable_if<(I<0)>::type * = nullptr) { } int main() { foo<2>(); foo<-1>(); }