projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a81d411558c3848dfb72b7a98b3be70c65231d18
[gcc.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" }