// { dg-do compile { target c++11 } } struct A { }; template decltype(f(T())) f(T t) // { dg-error "depth" } { return f(t); } int main() { f(A()); // { dg-error "no match" } } // { dg-prune-output "note" }