OSDN Git Service

PR c++/6057
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / decltype26.C
1 // { dg-options -std=c++0x }
2
3 struct A { };
4
5 template <class T>
6 decltype(f(T())) f(T t)         // { dg-error "depth" }
7 {
8   return f(t);
9 }
10
11 int main()
12 {
13   f(A());                       // { dg-error "no match" }
14 }
15
16 // { dg-prune-output "note" }