// PR c++/44175 // { dg-do compile { target c++11 } } template struct enable_if { }; template struct enable_if { typedef T type; }; template typename enable_if::type ft() {} template decltype (ft (F())) // { dg-error "depth" } ft(F) {} int main() { ft(0); // { dg-message "from here" } } // { dg-prune-output "compilation terminated" }