// PR c++/44175 // { dg-options -std=c++0x } template struct enable_if { }; template struct enable_if { typedef T type; }; template typename enable_if::type ft() {} template decltype (ft (F())) ft() {} // { dg-error "depth" } int main() { ft(); // { dg-error "no match|wrong number" } } // { dg-prune-output "note" }