blob: 58ba823aca047fbd3e164595d7a118dfa1da8576 [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct A { };
template <class T>
decltype(f(T())) f(T t) // { dg-error "depth" }
{
return f(t);
}
int main()
{
f(A()); // { dg-message "from here" }
}
// { dg-prune-output "compilation terminated" }