// PR c++/44175 // { dg-do compile { target c++11 } } template struct enable_if { }; template struct enable_if { typedef T type; }; template void ft (F f, typename enable_if::type) {} template< class F, int N > decltype(ft (F(), 0)) // { dg-error "depth" } ft (F f, typename enable_if::type) {} int main() { ft (0, 0); // { dg-message "from here" } }