1 // { dg-do compile { target c++11 } }
2 
3 struct A { };
4 
5 template <class T>
decltype(f (T ()))6 decltype(f(T())) f(T t)		// { dg-error "depth" }
7 {
8   return f(t);
9 }
10 
main()11 int main()
12 {
13   f(A());			// { dg-message "from here" }
14 }
15 
16 // { dg-prune-output "compilation terminated" }
17