repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: checking of pointer targets for structure constructors [PR56423]
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-template9.C
blob
c1d010ba128388ec539c03e64179d6a3ad5b5f9c
1
// PR c++/54276
2
// { dg-do link { target c++11 } }
3
4
template <typename T>
5
void foo(T)
6
{
7
static int x = 1;
8
auto f = [] { return x + 1; };
9
f();
10
}
11
12
int main()
13
{
14
foo(4);
15
}