Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/decltype26.C

raw
1 // { dg-do compile { target c++11 } }
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-message "from here" }
14 }
15
16 // { dg-prune-output "compilation terminated" }