blob: 0d320dadd2068b09b139f81309b1569c5b7cecfd [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-error "no match" }
}
// { dg-prune-output "note" }