repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype26.C
blob
58ba823aca047fbd3e164595d7a118dfa1da8576
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" }