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
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-decltype1.C
blob
0ab0cddb54a201a04d4c6e5d8ffff7ad16ddf2aa
1
// PR c++/59791
2
// We force the gimple dump to trigger use of lang_decl_name.
3
// { dg-options "-std=c++11 -fdump-tree-gimple" }
4
// { dg-final { cleanup-tree-dump "gimple" } }
5
6
template < class T > void
7
f (T t)
8
{
9
int i = t;
10
[](int)->decltype (i + t)
11
{
12
return 0;
13
}
14
(0);
15
}
16
17
void
18
foo ()
19
{
20
f (0);
21
}