// 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() {} int main() { ft(); // { dg-error "no match|wrong number" } } // { dg-prune-output "note" }